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

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

Issue 809603003: Plumb preamble log data from the hotword extension into the speech recognizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build. Created 6 years 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
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_APP_LIST_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h"
12 #include "chrome/browser/ui/host_desktop.h" 13 #include "chrome/browser/ui/host_desktop.h"
13 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
14 15
15 class AppListControllerDelegate; 16 class AppListControllerDelegate;
16 class PrefRegistrySimple; 17 class PrefRegistrySimple;
17 class Profile; 18 class Profile;
18 19
19 namespace base { 20 namespace base {
20 class CommandLine; 21 class CommandLine;
21 class FilePath; 22 class FilePath;
22 } 23 }
23 24
25 namespace content {
26 struct SpeechRecognitionSessionPreamble;
27 }
28
24 namespace gfx { 29 namespace gfx {
25 class ImageSkia; 30 class ImageSkia;
26 } 31 }
27 32
28 class AppListService { 33 class AppListService {
29 public: 34 public:
30 // Source that triggers the app launcher being enabled. This is used for UMA 35 // Source that triggers the app launcher being enabled. This is used for UMA
31 // to track discoverability of the app lancher shortcut after install. Also 36 // to track discoverability of the app lancher shortcut after install. Also
32 // used to provide custom install behavior (e.g. "always" enable). 37 // used to provide custom install behavior (e.g. "always" enable).
33 enum AppListEnableSource { 38 enum AppListEnableSource {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // current browser process. 77 // current browser process.
73 virtual void Show() = 0; 78 virtual void Show() = 0;
74 79
75 // Show the app list for the given profile. If it differs from the profile the 80 // Show the app list for the given profile. If it differs from the profile the
76 // app list is currently showing, repopulate the app list and save the new 81 // app list is currently showing, repopulate the app list and save the new
77 // profile to local prefs as the default app list profile. 82 // profile to local prefs as the default app list profile.
78 virtual void ShowForProfile(Profile* requested_profile) = 0; 83 virtual void ShowForProfile(Profile* requested_profile) = 0;
79 84
80 // Shows the app list, and switches to voice search. Used by always-on 85 // Shows the app list, and switches to voice search. Used by always-on
81 // hotwording. 86 // hotwording.
82 virtual void ShowForVoiceSearch(Profile* profile) = 0; 87 virtual void ShowForVoiceSearch(
88 Profile* profile,
89 const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble)
90 = 0;
83 91
84 // Shows the app list, and reveals the page that contains |extension_id|. This 92 // Shows the app list, and reveals the page that contains |extension_id|. This
85 // should only be called for things that show in the app list, and only when 93 // should only be called for things that show in the app list, and only when
86 // they begin or complete installing. If |start_discovery_tracking| is set, 94 // they begin or complete installing. If |start_discovery_tracking| is set,
87 // the app launcher will not actually be shown, but will start tracking UMA 95 // the app launcher will not actually be shown, but will start tracking UMA
88 // for app launcher discovery. 96 // for app launcher discovery.
89 virtual void ShowForAppInstall(Profile* profile, 97 virtual void ShowForAppInstall(Profile* profile,
90 const std::string& extension_id, 98 const std::string& extension_id,
91 bool start_discovery_tracking) = 0; 99 bool start_discovery_tracking) = 0;
92 100
(...skipping 28 matching lines...) Expand all
121 virtual ~AppListService() {} 129 virtual ~AppListService() {}
122 130
123 // Do any once off initialization needed for the app list. 131 // Do any once off initialization needed for the app list.
124 virtual void Init(Profile* initial_profile) = 0; 132 virtual void Init(Profile* initial_profile) = 0;
125 133
126 private: 134 private:
127 DISALLOW_COPY_AND_ASSIGN(AppListService); 135 DISALLOW_COPY_AND_ASSIGN(AppListService);
128 }; 136 };
129 137
130 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ 138 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/search/hotword_client.h ('k') | chrome/browser/ui/app_list/app_list_service_disabled.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698