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

Side by Side Diff: content/common/resource_dispatcher.h

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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
« no previous file with comments | « content/common/quota_dispatcher.h ('k') | content/common/socket_stream_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #ifndef CONTENT_COMMON_RESOURCE_DISPATCHER_H_ 7 #ifndef CONTENT_COMMON_RESOURCE_DISPATCHER_H_
8 #define CONTENT_COMMON_RESOURCE_DISPATCHER_H_ 8 #define CONTENT_COMMON_RESOURCE_DISPATCHER_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 // This class serves as a communication interface between the 28 // This class serves as a communication interface between the
29 // ResourceDispatcherHost in the browser process and the ResourceLoaderBridge in 29 // ResourceDispatcherHost in the browser process and the ResourceLoaderBridge in
30 // the child process. It can be used from any child process. 30 // the child process. It can be used from any child process.
31 class CONTENT_EXPORT ResourceDispatcher : public IPC::Channel::Listener { 31 class CONTENT_EXPORT ResourceDispatcher : public IPC::Channel::Listener {
32 public: 32 public:
33 explicit ResourceDispatcher(IPC::Message::Sender* sender); 33 explicit ResourceDispatcher(IPC::Message::Sender* sender);
34 virtual ~ResourceDispatcher(); 34 virtual ~ResourceDispatcher();
35 35
36 // IPC::Channel::Listener implementation. 36 // IPC::Channel::Listener implementation.
37 virtual bool OnMessageReceived(const IPC::Message& message); 37 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
38 38
39 // Creates a ResourceLoaderBridge for this type of dispatcher, this is so 39 // Creates a ResourceLoaderBridge for this type of dispatcher, this is so
40 // this can be tested regardless of the ResourceLoaderBridge::Create 40 // this can be tested regardless of the ResourceLoaderBridge::Create
41 // implementation. 41 // implementation.
42 webkit_glue::ResourceLoaderBridge* CreateBridge( 42 webkit_glue::ResourceLoaderBridge* CreateBridge(
43 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info); 43 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info);
44 44
45 // Adds a request from the pending_requests_ list, returning the new 45 // Adds a request from the pending_requests_ list, returning the new
46 // requests' ID 46 // requests' ID
47 int AddPendingRequest(webkit_glue::ResourceLoaderBridge::Peer* callback, 47 int AddPendingRequest(webkit_glue::ResourceLoaderBridge::Peer* callback,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 PendingRequestList pending_requests_; 155 PendingRequestList pending_requests_;
156 156
157 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; 157 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
158 158
159 content::ResourceDispatcherDelegate* delegate_; 159 content::ResourceDispatcherDelegate* delegate_;
160 160
161 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 161 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
162 }; 162 };
163 163
164 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_ 164 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/common/quota_dispatcher.h ('k') | content/common/socket_stream_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698