Home | History | Annotate | Download | only in shell
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef APPS_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_
      6 #define APPS_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_
      7 
      8 #include "base/compiler_specific.h"
      9 #include "content/public/browser/content_browser_client.h"
     10 
     11 namespace apps {
     12 class ShellBrowserMainParts;
     13 
     14 class ShellContentBrowserClient : public content::ContentBrowserClient {
     15  public:
     16   ShellContentBrowserClient();
     17   virtual ~ShellContentBrowserClient();
     18 
     19   // content::ContentBrowserClient overrides.
     20   virtual content::BrowserMainParts* CreateBrowserMainParts(
     21       const content::MainFunctionParams& parameters) OVERRIDE;
     22   virtual net::URLRequestContextGetter* CreateRequestContext(
     23       content::BrowserContext* browser_context,
     24       content::ProtocolHandlerMap* protocol_handlers) OVERRIDE;
     25   // TODO(jamescook): Quota management?
     26   // TODO(jamescook): Speech recognition?
     27 
     28  private:
     29   // Owned by content::BrowserMainLoop.
     30   ShellBrowserMainParts* browser_main_parts_;
     31 
     32   DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient);
     33 };
     34 
     35 }  // namespace apps
     36 
     37 #endif  // APPS_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_
     38