| OLD | NEW |
| 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_CHROME_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 ~ChromeContentBrowserClient() override; | 43 ~ChromeContentBrowserClient() override; |
| 44 | 44 |
| 45 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 45 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 46 | 46 |
| 47 // Notification that the application locale has changed. This allows us to | 47 // Notification that the application locale has changed. This allows us to |
| 48 // update our I/O thread cache of this value. | 48 // update our I/O thread cache of this value. |
| 49 static void SetApplicationLocale(const std::string& locale); | 49 static void SetApplicationLocale(const std::string& locale); |
| 50 | 50 |
| 51 content::BrowserMainParts* CreateBrowserMainParts( | 51 content::BrowserMainParts* CreateBrowserMainParts( |
| 52 const content::MainFunctionParams& parameters) override; | 52 const content::MainFunctionParams& parameters) override; |
| 53 void PostAfterStartupTask(const tracked_objects::Location& from_here, |
| 54 const scoped_refptr<base::TaskRunner>& task_runner, |
| 55 const base::Closure& task) override; |
| 53 std::string GetStoragePartitionIdForSite( | 56 std::string GetStoragePartitionIdForSite( |
| 54 content::BrowserContext* browser_context, | 57 content::BrowserContext* browser_context, |
| 55 const GURL& site) override; | 58 const GURL& site) override; |
| 56 bool IsValidStoragePartitionId(content::BrowserContext* browser_context, | 59 bool IsValidStoragePartitionId(content::BrowserContext* browser_context, |
| 57 const std::string& partition_id) override; | 60 const std::string& partition_id) override; |
| 58 void GetStoragePartitionConfigForSite( | 61 void GetStoragePartitionConfigForSite( |
| 59 content::BrowserContext* browser_context, | 62 content::BrowserContext* browser_context, |
| 60 const GURL& site, | 63 const GURL& site, |
| 61 bool can_be_default, | 64 bool can_be_default, |
| 62 std::string* partition_domain, | 65 std::string* partition_domain, |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 content::RenderFrameHost* render_frame_host, | 237 content::RenderFrameHost* render_frame_host, |
| 235 blink::WebPageVisibilityState* visibility_state) override; | 238 blink::WebPageVisibilityState* visibility_state) override; |
| 236 | 239 |
| 237 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 240 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 238 void GetAdditionalMappedFilesForChildProcess( | 241 void GetAdditionalMappedFilesForChildProcess( |
| 239 const base::CommandLine& command_line, | 242 const base::CommandLine& command_line, |
| 240 int child_process_id, | 243 int child_process_id, |
| 241 content::FileDescriptorInfo* mappings) override; | 244 content::FileDescriptorInfo* mappings) override; |
| 242 #endif | 245 #endif |
| 243 #if defined(OS_WIN) | 246 #if defined(OS_WIN) |
| 244 virtual const wchar_t* GetResourceDllName() override; | 247 const wchar_t* GetResourceDllName() override; |
| 245 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 248 void PreSpawnRenderer(sandbox::TargetPolicy* policy, bool* success) override; |
| 246 bool* success) override; | |
| 247 #endif | 249 #endif |
| 248 bool CheckMediaAccessPermission(content::BrowserContext* browser_context, | 250 bool CheckMediaAccessPermission(content::BrowserContext* browser_context, |
| 249 const GURL& security_origin, | 251 const GURL& security_origin, |
| 250 content::MediaStreamType type) override; | 252 content::MediaStreamType type) override; |
| 251 | 253 |
| 252 void OpenURL(content::BrowserContext* browser_context, | 254 void OpenURL(content::BrowserContext* browser_context, |
| 253 const content::OpenURLParams& params, | 255 const content::OpenURLParams& params, |
| 254 const base::Callback<void(content::WebContents*)>& callback) | 256 const base::Callback<void(content::WebContents*)>& callback) |
| 255 override; | 257 override; |
| 256 | 258 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 310 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
| 309 | 311 |
| 310 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 312 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
| 311 | 313 |
| 312 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 314 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 313 }; | 315 }; |
| 314 | 316 |
| 315 } // namespace chrome | 317 } // namespace chrome |
| 316 | 318 |
| 317 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 319 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |