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

Side by Side Diff: chrome/browser/extensions/test_extension_system.h

Issue 420543002: Declarative content scripts: Browser-side: per-extension shared memory regions (lazily loaded) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor relationship between UserScriptMaster and its subclasses Created 6 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
7 7
8 #include "extensions/browser/extension_system.h" 8 #include "extensions/browser/extension_system.h"
9 #include "extensions/common/one_shot_event.h" 9 #include "extensions/common/one_shot_event.h"
10 10
11 class Profile; 11 class Profile;
12 class TestingValueStore; 12 class TestingValueStore;
13 13
14 namespace base { 14 namespace base {
15 class CommandLine; 15 class CommandLine;
16 class FilePath; 16 class FilePath;
17 class Time; 17 class Time;
18 } 18 }
19 19
20 namespace content { 20 namespace content {
21 class BrowserContext; 21 class BrowserContext;
22 } 22 }
23 23
24 namespace extensions { 24 namespace extensions {
25 class DeclarativeUserScriptMaster;
25 class ExtensionPrefs; 26 class ExtensionPrefs;
26 class RuntimeData; 27 class RuntimeData;
27 class StandardManagementPolicyProvider; 28 class StandardManagementPolicyProvider;
28 29
29 // Test ExtensionSystem, for use with TestingProfile. 30 // Test ExtensionSystem, for use with TestingProfile.
30 class TestExtensionSystem : public ExtensionSystem { 31 class TestExtensionSystem : public ExtensionSystem {
31 public: 32 public:
32 explicit TestExtensionSystem(Profile* profile); 33 explicit TestExtensionSystem(Profile* profile);
33 virtual ~TestExtensionSystem(); 34 virtual ~TestExtensionSystem();
34 35
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual EventRouter* event_router() OVERRIDE; 74 virtual EventRouter* event_router() OVERRIDE;
74 virtual ExtensionWarningService* warning_service() OVERRIDE; 75 virtual ExtensionWarningService* warning_service() OVERRIDE;
75 virtual Blacklist* blacklist() OVERRIDE; 76 virtual Blacklist* blacklist() OVERRIDE;
76 virtual ErrorConsole* error_console() OVERRIDE; 77 virtual ErrorConsole* error_console() OVERRIDE;
77 virtual InstallVerifier* install_verifier() OVERRIDE; 78 virtual InstallVerifier* install_verifier() OVERRIDE;
78 virtual QuotaService* quota_service() OVERRIDE; 79 virtual QuotaService* quota_service() OVERRIDE;
79 virtual const OneShotEvent& ready() const OVERRIDE; 80 virtual const OneShotEvent& ready() const OVERRIDE;
80 virtual ContentVerifier* content_verifier() OVERRIDE; 81 virtual ContentVerifier* content_verifier() OVERRIDE;
81 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( 82 virtual scoped_ptr<ExtensionSet> GetDependentExtensions(
82 const Extension* extension) OVERRIDE; 83 const Extension* extension) OVERRIDE;
84 virtual DeclarativeUserScriptMaster*
85 GetDeclarativeUserScriptMasterByExtension(
86 const ExtensionId& extension_id) OVERRIDE;
83 87
84 void SetReady() { 88 void SetReady() {
85 LOG(INFO) << "SetReady()"; 89 LOG(INFO) << "SetReady()";
86 ready_.Signal(); 90 ready_.Signal();
87 } 91 }
88 92
89 // Factory method for tests to use with SetTestingProfile. 93 // Factory method for tests to use with SetTestingProfile.
90 static KeyedService* Build(content::BrowserContext* profile); 94 static KeyedService* Build(content::BrowserContext* profile);
91 95
92 protected: 96 protected:
(...skipping 14 matching lines...) Expand all
107 scoped_ptr<EventRouter> event_router_; 111 scoped_ptr<EventRouter> event_router_;
108 scoped_ptr<ErrorConsole> error_console_; 112 scoped_ptr<ErrorConsole> error_console_;
109 scoped_ptr<InstallVerifier> install_verifier_; 113 scoped_ptr<InstallVerifier> install_verifier_;
110 scoped_ptr<QuotaService> quota_service_; 114 scoped_ptr<QuotaService> quota_service_;
111 OneShotEvent ready_; 115 OneShotEvent ready_;
112 }; 116 };
113 117
114 } // namespace extensions 118 } // namespace extensions
115 119
116 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ 120 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698