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

Side by Side Diff: extensions/shell/browser/shell_extensions_browser_client.h

Issue 1169223002: [Extensions] Clean up the handling of ExtensionHostMsg_Request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 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
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 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "extensions/browser/extensions_browser_client.h" 9 #include "extensions/browser/extensions_browser_client.h"
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( 78 scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate(
79 content::BrowserContext* context) const override; 79 content::BrowserContext* context) const override;
80 const ComponentExtensionResourceManager* 80 const ComponentExtensionResourceManager*
81 GetComponentExtensionResourceManager() override; 81 GetComponentExtensionResourceManager() override;
82 void BroadcastEventToRenderers(const std::string& event_name, 82 void BroadcastEventToRenderers(const std::string& event_name,
83 scoped_ptr<base::ListValue> args) override; 83 scoped_ptr<base::ListValue> args) override;
84 net::NetLog* GetNetLog() override; 84 net::NetLog* GetNetLog() override;
85 ExtensionCache* GetExtensionCache() override; 85 ExtensionCache* GetExtensionCache() override;
86 bool IsBackgroundUpdateAllowed() override; 86 bool IsBackgroundUpdateAllowed() override;
87 bool IsMinBrowserVersionSupported(const std::string& min_version) override; 87 bool IsMinBrowserVersionSupported(const std::string& min_version) override;
88 ExtensionWebContentsObserver* GetExtensionWebContentsObserver(
89 content::WebContents* web_contents) override;
88 90
89 // Sets the API client. 91 // Sets the API client.
90 void SetAPIClientForTest(ExtensionsAPIClient* api_client); 92 void SetAPIClientForTest(ExtensionsAPIClient* api_client);
91 93
92 private: 94 private:
93 // The single BrowserContext for app_shell. Not owned. 95 // The single BrowserContext for app_shell. Not owned.
94 content::BrowserContext* browser_context_; 96 content::BrowserContext* browser_context_;
95 97
96 // The PrefService for |browser_context_|. Not owned. 98 // The PrefService for |browser_context_|. Not owned.
97 PrefService* pref_service_; 99 PrefService* pref_service_;
98 100
99 // Support for extension APIs. 101 // Support for extension APIs.
100 scoped_ptr<ExtensionsAPIClient> api_client_; 102 scoped_ptr<ExtensionsAPIClient> api_client_;
101 103
102 // The extension cache used for download and installation. 104 // The extension cache used for download and installation.
103 scoped_ptr<ExtensionCache> extension_cache_; 105 scoped_ptr<ExtensionCache> extension_cache_;
104 106
105 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); 107 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient);
106 }; 108 };
107 109
108 } // namespace extensions 110 } // namespace extensions
109 111
110 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ 112 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_extensions_api_client.cc ('k') | extensions/shell/browser/shell_extensions_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698