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

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

Issue 1362043005: Add extensions code to use common updater in components/update_client/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged latest origin/master Created 5 years, 2 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 | « no previous file | chrome/browser/extensions/chrome_extensions_browser_client.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <string>
9 #include <vector>
9 10
10 #include "base/basictypes.h" 11 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
12 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
14 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/extensions/chrome_notification_observer.h" 16 #include "chrome/browser/extensions/chrome_notification_observer.h"
15 #include "extensions/browser/extensions_browser_client.h" 17 #include "extensions/browser/extensions_browser_client.h"
16 18
17 namespace base { 19 namespace base {
18 class CommandLine; 20 class CommandLine;
19 } 21 }
20 22
21 namespace content { 23 namespace content {
22 class BrowserContext; 24 class BrowserContext;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool IsMinBrowserVersionSupported(const std::string& min_version) override; 106 bool IsMinBrowserVersionSupported(const std::string& min_version) override;
105 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( 107 ExtensionWebContentsObserver* GetExtensionWebContentsObserver(
106 content::WebContents* web_contents) override; 108 content::WebContents* web_contents) override;
107 void ReportError(content::BrowserContext* context, 109 void ReportError(content::BrowserContext* context,
108 scoped_ptr<ExtensionError> error) override; 110 scoped_ptr<ExtensionError> error) override;
109 void CleanUpWebView(content::BrowserContext* browser_context, 111 void CleanUpWebView(content::BrowserContext* browser_context,
110 int embedder_process_id, 112 int embedder_process_id,
111 int view_instance_id) override; 113 int view_instance_id) override;
112 void AttachExtensionTaskManagerTag(content::WebContents* web_contents, 114 void AttachExtensionTaskManagerTag(content::WebContents* web_contents,
113 ViewType view_type) override; 115 ViewType view_type) override;
116 scoped_refptr<update_client::UpdateClient> CreateUpdateClient(
117 content::BrowserContext* context) override;
114 118
115 private: 119 private:
116 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; 120 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>;
117 121
118 // Observer for Chrome-specific notifications. 122 // Observer for Chrome-specific notifications.
119 ChromeNotificationObserver notification_observer_; 123 ChromeNotificationObserver notification_observer_;
120 124
121 // Support for ProcessManager. 125 // Support for ProcessManager.
122 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; 126 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_;
123 127
124 // Client for API implementations. 128 // Client for API implementations.
125 scoped_ptr<ChromeExtensionsAPIClient> api_client_; 129 scoped_ptr<ChromeExtensionsAPIClient> api_client_;
126 130
127 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; 131 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_;
128 132
129 scoped_ptr<ExtensionCache> extension_cache_; 133 scoped_ptr<ExtensionCache> extension_cache_;
130 134
131 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); 135 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient);
132 }; 136 };
133 137
134 } // namespace extensions 138 } // namespace extensions
135 139
136 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 140 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/chrome_extensions_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698