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

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

Issue 6366019: Part 1 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove Nico's changes that I patched in for testing. Created 9 years, 11 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) 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 CHROME_COMMON_RESOURCE_DISPATCHER_H_ 7 #ifndef CHROME_COMMON_RESOURCE_DISPATCHER_H_
8 #define CHROME_COMMON_RESOURCE_DISPATCHER_H_ 8 #define CHROME_COMMON_RESOURCE_DISPATCHER_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 // This class serves as a communication interface between the 23 // This class serves as a communication interface between the
24 // ResourceDispatcherHost in the browser process and the ResourceLoaderBridge in 24 // ResourceDispatcherHost in the browser process and the ResourceLoaderBridge in
25 // the child process. It can be used from any child process. 25 // the child process. It can be used from any child process.
26 class ResourceDispatcher : public IPC::Channel::Listener { 26 class ResourceDispatcher : public IPC::Channel::Listener {
27 public: 27 public:
28 explicit ResourceDispatcher(IPC::Message::Sender* sender); 28 explicit ResourceDispatcher(IPC::Message::Sender* sender);
29 ~ResourceDispatcher(); 29 ~ResourceDispatcher();
30 30
31 // IPC::Channel::Listener implementation. 31 // IPC::Channel::Listener implementation.
32 bool OnMessageReceived(const IPC::Message& message); 32 virtual bool OnMessageReceived(const IPC::Message& message);
33 33
34 // Creates a ResourceLoaderBridge for this type of dispatcher, this is so 34 // Creates a ResourceLoaderBridge for this type of dispatcher, this is so
35 // this can be tested regardless of the ResourceLoaderBridge::Create 35 // this can be tested regardless of the ResourceLoaderBridge::Create
36 // implementation. 36 // implementation.
37 webkit_glue::ResourceLoaderBridge* CreateBridge( 37 webkit_glue::ResourceLoaderBridge* CreateBridge(
38 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info, 38 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info,
39 int host_renderer_id, 39 int host_renderer_id,
40 int host_render_view_id); 40 int host_render_view_id);
41 41
42 // Adds a request from the pending_requests_ list, returning the new 42 // Adds a request from the pending_requests_ list, returning the new
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 // All pending requests issued to the host 144 // All pending requests issued to the host
145 PendingRequestList pending_requests_; 145 PendingRequestList pending_requests_;
146 146
147 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; 147 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 149 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
150 }; 150 };
151 151
152 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H_ 152 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698