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

Side by Side Diff: content/browser/renderer_host/text_input_client_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 (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_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_
7 7
8 #include "content/common/mac/attributed_string_coder.h" 8 #include "content/common/mac/attributed_string_coder.h"
9 #include "content/public/browser/browser_message_filter.h" 9 #include "content/public/browser/browser_message_filter.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class Point; 12 class Point;
13 class Range; 13 class Range;
14 class Rect; 14 class Rect;
15 } 15 }
16 16
17 namespace content { 17 namespace content {
18 18
19 // This is a browser-side message filter that lives on the IO thread to handle 19 // This is a browser-side message filter that lives on the IO thread to handle
20 // replies to messages sent by the TextInputClientMac. See 20 // replies to messages sent by the TextInputClientMac. See
21 // content/browser/renderer_host/text_input_client_mac.h for more information. 21 // content/browser/renderer_host/text_input_client_mac.h for more information.
22 class CONTENT_EXPORT TextInputClientMessageFilter 22 class CONTENT_EXPORT TextInputClientMessageFilter
23 : public BrowserMessageFilter { 23 : public BrowserMessageFilter {
24 public: 24 public:
25 explicit TextInputClientMessageFilter(int child_id); 25 explicit TextInputClientMessageFilter(int child_id);
26 26
27 // BrowserMessageFilter override: 27 // BrowserMessageFilter override:
28 virtual bool OnMessageReceived(const IPC::Message& message, 28 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
29 bool* message_was_ok) OVERRIDE;
30 29
31 protected: 30 protected:
32 virtual ~TextInputClientMessageFilter(); 31 virtual ~TextInputClientMessageFilter();
33 32
34 private: 33 private:
35 // IPC Message handlers: 34 // IPC Message handlers:
36 void OnGotStringAtPoint( 35 void OnGotStringAtPoint(
37 const mac::AttributedStringCoder::EncodedString& encoded_string, 36 const mac::AttributedStringCoder::EncodedString& encoded_string,
38 const gfx::Point& point); 37 const gfx::Point& point);
39 void OnGotCharacterIndexForPoint(size_t index); 38 void OnGotCharacterIndexForPoint(size_t index);
40 void OnGotFirstRectForRange(const gfx::Rect& rect); 39 void OnGotFirstRectForRange(const gfx::Rect& rect);
41 void OnGotStringFromRange( 40 void OnGotStringFromRange(
42 const mac::AttributedStringCoder::EncodedString& string); 41 const mac::AttributedStringCoder::EncodedString& string);
43 42
44 // Child process id. 43 // Child process id.
45 int child_process_id_; 44 int child_process_id_;
46 45
47 DISALLOW_COPY_AND_ASSIGN(TextInputClientMessageFilter); 46 DISALLOW_COPY_AND_ASSIGN(TextInputClientMessageFilter);
48 }; 47 };
49 48
50 } // namespace content 49 } // namespace content
51 50
52 #endif // CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_ 51 #endif // CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698