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

Side by Side Diff: content/browser/vibration/vibration_message_filter.h

Issue 292443004: Remove IPC_BEGIN_MESSAGE_MAP_EX macro since r270839 made all bad IPCs kill their child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 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 CONTENT_BROWSER_VIBRATION_VIBRATION_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_VIBRATION_VIBRATION_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_VIBRATION_VIBRATION_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_VIBRATION_VIBRATION_MESSAGE_FILTER_H_
7 7
8 #include "content/public/browser/browser_message_filter.h" 8 #include "content/public/browser/browser_message_filter.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 class VibrationProvider; 12 class VibrationProvider;
13 13
14 // VibrationMessageFilter is a browser filter for Vibration messages. 14 // VibrationMessageFilter is a browser filter for Vibration messages.
15 class VibrationMessageFilter : public BrowserMessageFilter { 15 class VibrationMessageFilter : public BrowserMessageFilter {
16 public: 16 public:
17 VibrationMessageFilter(); 17 VibrationMessageFilter();
18 18
19 private: 19 private:
20 virtual ~VibrationMessageFilter(); 20 virtual ~VibrationMessageFilter();
21 // BrowserMessageFilter implementation. 21 // BrowserMessageFilter implementation.
22 virtual bool OnMessageReceived(const IPC::Message& message, 22 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
23 bool* message_was_ok) OVERRIDE;
24 23
25 void OnVibrate(int64 milliseconds); 24 void OnVibrate(int64 milliseconds);
26 void OnCancelVibration(); 25 void OnCancelVibration();
27 static VibrationProvider* CreateProvider(); 26 static VibrationProvider* CreateProvider();
28 27
29 scoped_ptr<VibrationProvider> provider_; 28 scoped_ptr<VibrationProvider> provider_;
30 DISALLOW_COPY_AND_ASSIGN(VibrationMessageFilter); 29 DISALLOW_COPY_AND_ASSIGN(VibrationMessageFilter);
31 }; 30 };
32 31
33 } // namespace content 32 } // namespace content
34 33
35 #endif // CONTENT_BROWSER_VIBRATION_VIBRATION_MESSAGE_FILTER_H_ 34 #endif // CONTENT_BROWSER_VIBRATION_VIBRATION_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/tracing/trace_message_filter.cc ('k') | content/browser/vibration/vibration_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698