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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 content::RenderFrameHost* render_frame_host, | 262 content::RenderFrameHost* render_frame_host, |
260 blink::WebPageVisibilityState* visibility_state) override; | 263 blink::WebPageVisibilityState* visibility_state) override; |
261 | 264 |
262 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 265 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
263 void GetAdditionalMappedFilesForChildProcess( | 266 void GetAdditionalMappedFilesForChildProcess( |
264 const base::CommandLine& command_line, | 267 const base::CommandLine& command_line, |
265 int child_process_id, | 268 int child_process_id, |
266 content::FileDescriptorInfo* mappings) override; | 269 content::FileDescriptorInfo* mappings) override; |
267 #endif | 270 #endif |
268 #if defined(OS_WIN) | 271 #if defined(OS_WIN) |
269 virtual const wchar_t* GetResourceDllName() override; | 272 const wchar_t* GetResourceDllName() override; |
270 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 273 void PreSpawnRenderer(sandbox::TargetPolicy* policy, bool* success) override; |
271 bool* success) override; | |
272 #endif | 274 #endif |
273 bool CheckMediaAccessPermission(content::BrowserContext* browser_context, | 275 bool CheckMediaAccessPermission(content::BrowserContext* browser_context, |
274 const GURL& security_origin, | 276 const GURL& security_origin, |
275 content::MediaStreamType type) override; | 277 content::MediaStreamType type) override; |
276 | 278 |
277 void OpenURL(content::BrowserContext* browser_context, | 279 void OpenURL(content::BrowserContext* browser_context, |
278 const content::OpenURLParams& params, | 280 const content::OpenURLParams& params, |
279 const base::Callback<void(content::WebContents*)>& callback) | 281 const base::Callback<void(content::WebContents*)>& callback) |
280 override; | 282 override; |
281 | 283 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 335 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
334 | 336 |
335 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 337 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
336 | 338 |
337 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 339 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
338 }; | 340 }; |
339 | 341 |
340 } // namespace chrome | 342 } // namespace chrome |
341 | 343 |
342 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 344 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |