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

Side by Side Diff: chrome/browser/speech/chrome_speech_recognition_manager_delegate.h

Issue 260903010: Start removing support for the experimental x-webkit-speech API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't touch histograms.xml Created 6 years, 7 months 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/public/browser/speech_recognition_event_listener.h" 10 #include "content/public/browser/speech_recognition_event_listener.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 private: 53 private:
54 class OptionalRequestInfo; 54 class OptionalRequestInfo;
55 class TabWatcher; 55 class TabWatcher;
56 56
57 // Checks for VIEW_TYPE_TAB_CONTENTS host in the UI thread and notifies back 57 // Checks for VIEW_TYPE_TAB_CONTENTS host in the UI thread and notifies back
58 // the result in the IO thread through |callback|. 58 // the result in the IO thread through |callback|.
59 static void CheckRenderViewType( 59 static void CheckRenderViewType(
60 base::Callback<void(bool ask_user, bool is_allowed)> callback, 60 base::Callback<void(bool ask_user, bool is_allowed)> callback,
61 int render_process_id, 61 int render_process_id,
62 int render_view_id, 62 int render_view_id);
63 bool js_api);
64 63
65 scoped_refptr<OptionalRequestInfo> optional_request_info_; 64 scoped_refptr<OptionalRequestInfo> optional_request_info_;
66 scoped_refptr<TabWatcher> tab_watcher_; 65 scoped_refptr<TabWatcher> tab_watcher_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechRecognitionManagerDelegate); 67 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechRecognitionManagerDelegate);
69 }; 68 };
70 69
71 } // namespace speech 70 } // namespace speech
72 71
73 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_ 72 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698