OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_SPEECH_TTS_MESSAGE_FILTER_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_TTS_MESSAGE_FILTER_H_ |
6 #define CHROME_BROWSER_SPEECH_TTS_MESSAGE_FILTER_H_ | 6 #define CHROME_BROWSER_SPEECH_TTS_MESSAGE_FILTER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
9 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
10 #include "chrome/browser/speech/tts_controller.h" | 11 #include "chrome/browser/speech/tts_controller.h" |
11 #include "content/public/browser/browser_message_filter.h" | 12 #include "content/public/browser/browser_message_filter.h" |
12 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
13 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 class BrowserContext; | 17 class BrowserContext; |
17 } | 18 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 70 |
70 content::BrowserContext* browser_context_; | 71 content::BrowserContext* browser_context_; |
71 mutable base::Lock mutex_; | 72 mutable base::Lock mutex_; |
72 mutable bool valid_; | 73 mutable bool valid_; |
73 content::NotificationRegistrar notification_registrar_; | 74 content::NotificationRegistrar notification_registrar_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(TtsMessageFilter); | 76 DISALLOW_COPY_AND_ASSIGN(TtsMessageFilter); |
76 }; | 77 }; |
77 | 78 |
78 #endif // CHROME_BROWSER_SPEECH_TTS_MESSAGE_FILTER_H_ | 79 #endif // CHROME_BROWSER_SPEECH_TTS_MESSAGE_FILTER_H_ |
OLD | NEW |