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 CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 private: | 38 private: |
39 // A BrowserContextKeyedServiceFactory for this service. | 39 // A BrowserContextKeyedServiceFactory for this service. |
40 class Factory; | 40 class Factory; |
41 | 41 |
42 // ExitObserver to shutdown the service on exiting. WebContents depends | 42 // ExitObserver to shutdown the service on exiting. WebContents depends |
43 // on the profile and needs to be closed before the profile and its | 43 // on the profile and needs to be closed before the profile and its |
44 // keyed service shutdown. | 44 // keyed service shutdown. |
45 class ExitObserver; | 45 class ExitObserver; |
46 | 46 |
| 47 // The WebContentsDelegate implementation for the start page. This allows |
| 48 // getUserMedia() request from the web contents. |
| 49 class StartPageWebContentsDelegate; |
| 50 |
47 explicit StartPageService(Profile* profile); | 51 explicit StartPageService(Profile* profile); |
48 virtual ~StartPageService(); | 52 virtual ~StartPageService(); |
49 | 53 |
50 // BrowserContextKeyedService overrides: | 54 // BrowserContextKeyedService overrides: |
51 virtual void Shutdown() OVERRIDE; | 55 virtual void Shutdown() OVERRIDE; |
52 | 56 |
53 Profile* profile_; | 57 Profile* profile_; |
54 scoped_ptr<content::WebContents> contents_; | 58 scoped_ptr<content::WebContents> contents_; |
| 59 scoped_ptr<StartPageWebContentsDelegate> contents_delegate_; |
55 scoped_ptr<ExitObserver> exit_observer_; | 60 scoped_ptr<ExitObserver> exit_observer_; |
56 scoped_ptr<RecommendedApps> recommended_apps_; | 61 scoped_ptr<RecommendedApps> recommended_apps_; |
57 | 62 |
58 DISALLOW_COPY_AND_ASSIGN(StartPageService); | 63 DISALLOW_COPY_AND_ASSIGN(StartPageService); |
59 }; | 64 }; |
60 | 65 |
61 } // namespace app_list | 66 } // namespace app_list |
62 | 67 |
63 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ | 68 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ |
OLD | NEW |