Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: chrome/browser/ui/app_list/start_page_service.h

Issue 29763004: Embeds offline voice recognizer plugin and its manager to app-list start page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/resources/app_list/start_page.js ('k') | chrome/browser/ui/app_list/start_page_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698