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

Side by Side Diff: content/browser/loader/async_resource_handler.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_LOADER_ASYNC_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // Used to complete an asynchronous resource request in response to resource 26 // Used to complete an asynchronous resource request in response to resource
27 // load events from the resource dispatcher host. 27 // load events from the resource dispatcher host.
28 class AsyncResourceHandler : public ResourceHandler, 28 class AsyncResourceHandler : public ResourceHandler,
29 public ResourceMessageDelegate { 29 public ResourceMessageDelegate {
30 public: 30 public:
31 AsyncResourceHandler(net::URLRequest* request, 31 AsyncResourceHandler(net::URLRequest* request,
32 ResourceDispatcherHostImpl* rdh); 32 ResourceDispatcherHostImpl* rdh);
33 virtual ~AsyncResourceHandler(); 33 virtual ~AsyncResourceHandler();
34 34
35 virtual bool OnMessageReceived(const IPC::Message& message, 35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
36 bool* message_was_ok) OVERRIDE;
37 36
38 // ResourceHandler implementation: 37 // ResourceHandler implementation:
39 virtual bool OnUploadProgress(int request_id, 38 virtual bool OnUploadProgress(int request_id,
40 uint64 position, 39 uint64 position,
41 uint64 size) OVERRIDE; 40 uint64 size) OVERRIDE;
42 virtual bool OnRequestRedirected(int request_id, 41 virtual bool OnRequestRedirected(int request_id,
43 const GURL& new_url, 42 const GURL& new_url,
44 ResourceResponse* response, 43 ResourceResponse* response,
45 bool* defer) OVERRIDE; 44 bool* defer) OVERRIDE;
46 virtual bool OnResponseStarted(int request_id, 45 virtual bool OnResponseStarted(int request_id,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 bool sent_first_data_msg_; 90 bool sent_first_data_msg_;
92 91
93 int64_t reported_transfer_size_; 92 int64_t reported_transfer_size_;
94 93
95 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); 94 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler);
96 }; 95 };
97 96
98 } // namespace content 97 } // namespace content
99 98
100 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ 99 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_dispatcher_host.cc ('k') | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698