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

Side by Side Diff: content/browser/loader/resource_message_delegate.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) 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 CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_DELEGATE_ 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_DELEGATE_
6 #define CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_DELEGATE_ 6 #define CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_DELEGATE_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/global_request_id.h" 10 #include "content/public/browser/global_request_id.h"
(...skipping 11 matching lines...) Expand all
22 // A ResourceMessageDelegate receives IPC ResourceMsg_* messages for a specified 22 // A ResourceMessageDelegate receives IPC ResourceMsg_* messages for a specified
23 // URLRequest. The delegate should implement its own IPC handler. It will 23 // URLRequest. The delegate should implement its own IPC handler. It will
24 // receive the message _after_ the ResourceDispatcherHost has handled it. 24 // receive the message _after_ the ResourceDispatcherHost has handled it.
25 class CONTENT_EXPORT ResourceMessageDelegate { 25 class CONTENT_EXPORT ResourceMessageDelegate {
26 public: 26 public:
27 ResourceMessageDelegate(const net::URLRequest* request); 27 ResourceMessageDelegate(const net::URLRequest* request);
28 virtual ~ResourceMessageDelegate(); 28 virtual ~ResourceMessageDelegate();
29 29
30 // Called when the ResourceDispatcherHostImpl receives a message specifically 30 // Called when the ResourceDispatcherHostImpl receives a message specifically
31 // for this delegate. 31 // for this delegate.
32 virtual bool OnMessageReceived(const IPC::Message& message, 32 virtual bool OnMessageReceived(const IPC::Message& message) = 0;
33 bool* message_was_ok) = 0;
34 33
35 void set_request_id(const GlobalRequestID& new_request_id) { 34 void set_request_id(const GlobalRequestID& new_request_id) {
36 id_ = new_request_id; 35 id_ = new_request_id;
37 } 36 }
38 37
39 private: 38 private:
40 GlobalRequestID id_; 39 GlobalRequestID id_;
41 DISALLOW_IMPLICIT_CONSTRUCTORS(ResourceMessageDelegate); 40 DISALLOW_IMPLICIT_CONSTRUCTORS(ResourceMessageDelegate);
42 }; 41 };
43 42
44 } // namespace content 43 } // namespace content
45 44
46 #endif // CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_DELEGATE_ 45 #endif // CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_DELEGATE_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_unittest.cc ('k') | content/browser/loader/resource_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698