OLD | NEW |
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_extensions_browser_client.h" | 5 #include "extensions/shell/browser/shell_extensions_browser_client.h" |
6 | 6 |
7 #include "content/public/browser/browser_context.h" | 7 #include "content/public/browser/browser_context.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 #include "content/public/browser/render_frame_host.h" | 9 #include "content/public/browser/render_frame_host.h" |
10 #include "extensions/browser/api/extensions_api_client.h" | 10 #include "extensions/browser/api/extensions_api_client.h" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 } | 149 } |
150 | 150 |
151 bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { | 151 bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { |
152 // TODO(jamescook): We might want to tell extensions when app_shell updates. | 152 // TODO(jamescook): We might want to tell extensions when app_shell updates. |
153 return false; | 153 return false; |
154 } | 154 } |
155 | 155 |
156 void ShellExtensionsBrowserClient::PermitExternalProtocolHandler() { | 156 void ShellExtensionsBrowserClient::PermitExternalProtocolHandler() { |
157 } | 157 } |
158 | 158 |
159 scoped_ptr<AppSorting> ShellExtensionsBrowserClient::CreateAppSorting() { | 159 scoped_ptr<AppSorting> ShellExtensionsBrowserClient::CreateAppSorting( |
| 160 content::BrowserContext* context) { |
160 return scoped_ptr<AppSorting>(new NullAppSorting); | 161 return scoped_ptr<AppSorting>(new NullAppSorting); |
161 } | 162 } |
162 | 163 |
163 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() { | 164 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() { |
164 return false; | 165 return false; |
165 } | 166 } |
166 | 167 |
167 ApiActivityMonitor* ShellExtensionsBrowserClient::GetApiActivityMonitor( | 168 ApiActivityMonitor* ShellExtensionsBrowserClient::GetApiActivityMonitor( |
168 BrowserContext* context) { | 169 BrowserContext* context) { |
169 // app_shell doesn't monitor API function calls or events. | 170 // app_shell doesn't monitor API function calls or events. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 api_client_.reset(api_client); | 242 api_client_.reset(api_client); |
242 } | 243 } |
243 | 244 |
244 ExtensionWebContentsObserver* | 245 ExtensionWebContentsObserver* |
245 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( | 246 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( |
246 content::WebContents* web_contents) { | 247 content::WebContents* web_contents) { |
247 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); | 248 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); |
248 } | 249 } |
249 | 250 |
250 } // namespace extensions | 251 } // namespace extensions |
OLD | NEW |