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

Side by Side Diff: content/browser/speech/speech_recognition_dispatcher_host.h

Issue 419503005: Merge 285314 "Turn webspeech on/off when tab goes fore/background" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1985_128/src/
Patch Set: Created 6 years, 5 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 CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_DISPATCHER_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 void OnStartRequest( 67 void OnStartRequest(
68 const SpeechRecognitionHostMsg_StartRequest_Params& params); 68 const SpeechRecognitionHostMsg_StartRequest_Params& params);
69 void OnStartRequestOnIO( 69 void OnStartRequestOnIO(
70 int embedder_render_process_id, 70 int embedder_render_process_id,
71 int embedder_render_view_id, 71 int embedder_render_view_id,
72 const SpeechRecognitionHostMsg_StartRequest_Params& params, 72 const SpeechRecognitionHostMsg_StartRequest_Params& params,
73 bool filter_profanities); 73 bool filter_profanities);
74 void OnAbortRequest(int render_view_id, int request_id); 74 void OnAbortRequest(int render_view_id, int request_id);
75 void OnStopCaptureRequest(int render_view_id, int request_id); 75 void OnStopCaptureRequest(int render_view_id, int request_id);
76 void OnAbortAllRequests(int render_view_id);
76 77
77 bool is_guest_; 78 bool is_guest_;
78 int render_process_id_; 79 int render_process_id_;
79 scoped_refptr<net::URLRequestContextGetter> context_getter_; 80 scoped_refptr<net::URLRequestContextGetter> context_getter_;
80 81
81 // Used for posting asynchronous tasks (on the IO thread) without worrying 82 // Used for posting asynchronous tasks (on the IO thread) without worrying
82 // about this class being destroyed in the meanwhile (due to browser shutdown) 83 // about this class being destroyed in the meanwhile (due to browser shutdown)
83 // since tasks pending on a destroyed WeakPtr are automatically discarded. 84 // since tasks pending on a destroyed WeakPtr are automatically discarded.
84 base::WeakPtrFactory<SpeechRecognitionDispatcherHost> weak_factory_; 85 base::WeakPtrFactory<SpeechRecognitionDispatcherHost> weak_factory_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionDispatcherHost); 87 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionDispatcherHost);
87 }; 88 };
88 89
89 } // namespace content 90 } // namespace content
90 91
91 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_DISPATCHER_HOST_H_ 92 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/media_stream_devices_controller.cc ('k') | content/browser/speech/speech_recognition_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698