Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(973)

Side by Side Diff: extensions/shell/browser/shell_extension_system.cc

Issue 2881453002: DNR Prototype: With flatbuffers
Patch Set: -- Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/shell/browser/shell_extension_system.h ('k') | extensions/utility/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/shell/browser/shell_extension_system.h" 5 #include "extensions/shell/browser/shell_extension_system.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 const UnloadedExtensionReason reason) {} 178 const UnloadedExtensionReason reason) {}
179 179
180 const OneShotEvent& ShellExtensionSystem::ready() const { 180 const OneShotEvent& ShellExtensionSystem::ready() const {
181 return ready_; 181 return ready_;
182 } 182 }
183 183
184 ContentVerifier* ShellExtensionSystem::content_verifier() { 184 ContentVerifier* ShellExtensionSystem::content_verifier() {
185 return nullptr; 185 return nullptr;
186 } 186 }
187 187
188 // TODO is this correct? rules_store returns null.
189 declarative_net_request::RulesMonitor* ShellExtensionSystem::rules_monitor() {
190 return nullptr;
191 }
192
188 std::unique_ptr<ExtensionSet> ShellExtensionSystem::GetDependentExtensions( 193 std::unique_ptr<ExtensionSet> ShellExtensionSystem::GetDependentExtensions(
189 const Extension* extension) { 194 const Extension* extension) {
190 return base::MakeUnique<ExtensionSet>(); 195 return base::MakeUnique<ExtensionSet>();
191 } 196 }
192 197
193 void ShellExtensionSystem::InstallUpdate(const std::string& extension_id, 198 void ShellExtensionSystem::InstallUpdate(const std::string& extension_id,
194 const base::FilePath& temp_dir) { 199 const base::FilePath& temp_dir) {
195 NOTREACHED(); 200 NOTREACHED();
196 base::DeleteFile(temp_dir, true /* recursive */); 201 base::DeleteFile(temp_dir, true /* recursive */);
197 } 202 }
198 203
199 void ShellExtensionSystem::OnExtensionRegisteredWithRequestContexts( 204 void ShellExtensionSystem::OnExtensionRegisteredWithRequestContexts(
200 scoped_refptr<Extension> extension) { 205 scoped_refptr<Extension> extension) {
201 ExtensionRegistry* registry = ExtensionRegistry::Get(browser_context_); 206 ExtensionRegistry* registry = ExtensionRegistry::Get(browser_context_);
202 registry->AddReady(extension); 207 registry->AddReady(extension);
203 registry->TriggerOnReady(extension.get()); 208 registry->TriggerOnReady(extension.get());
204 } 209 }
205 210
206 } // namespace extensions 211 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_extension_system.h ('k') | extensions/utility/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698