OLD | NEW |
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 APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
6 #define APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 6 #define APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "content/public/browser/content_browser_client.h" | 9 #include "content/public/browser/content_browser_client.h" |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 content::BrowserContext* browser_context, | 34 content::BrowserContext* browser_context, |
35 content::ProtocolHandlerMap* protocol_handlers, | 35 content::ProtocolHandlerMap* protocol_handlers, |
36 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; | 36 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; |
37 // TODO(jamescook): Quota management? | 37 // TODO(jamescook): Quota management? |
38 // TODO(jamescook): Speech recognition? | 38 // TODO(jamescook): Speech recognition? |
39 virtual bool IsHandledURL(const GURL& url) OVERRIDE; | 39 virtual bool IsHandledURL(const GURL& url) OVERRIDE; |
40 virtual void SiteInstanceGotProcess(content::SiteInstance* site_instance) | 40 virtual void SiteInstanceGotProcess(content::SiteInstance* site_instance) |
41 OVERRIDE; | 41 OVERRIDE; |
42 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) | 42 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) |
43 OVERRIDE; | 43 OVERRIDE; |
44 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 44 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
45 int child_process_id) OVERRIDE; | 45 int child_process_id) OVERRIDE; |
46 virtual void GetAdditionalAllowedSchemesForFileSystem( | 46 virtual void GetAdditionalAllowedSchemesForFileSystem( |
47 std::vector<std::string>* additional_schemes) OVERRIDE; | 47 std::vector<std::string>* additional_schemes) OVERRIDE; |
48 | 48 |
49 private: | 49 private: |
50 // Returns the extension or app associated with |site_instance| or NULL. | 50 // Returns the extension or app associated with |site_instance| or NULL. |
51 const extensions::Extension* GetExtension( | 51 const extensions::Extension* GetExtension( |
52 content::SiteInstance* site_instance); | 52 content::SiteInstance* site_instance); |
53 | 53 |
54 // Owned by content::BrowserMainLoop. | 54 // Owned by content::BrowserMainLoop. |
55 ShellBrowserMainParts* browser_main_parts_; | 55 ShellBrowserMainParts* browser_main_parts_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); | 57 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace apps | 60 } // namespace apps |
61 | 61 |
62 #endif // APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 62 #endif // APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |