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

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

Issue 6576020: Remove Gears from Chrome (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove host_render_view_id Created 9 years, 10 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 17 matching lines...) Expand all
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 virtual 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,
40 int host_render_view_id);
41 39
42 // Adds a request from the pending_requests_ list, returning the new 40 // Adds a request from the pending_requests_ list, returning the new
43 // requests' ID 41 // requests' ID
44 int AddPendingRequest(webkit_glue::ResourceLoaderBridge::Peer* callback, 42 int AddPendingRequest(webkit_glue::ResourceLoaderBridge::Peer* callback,
45 ResourceType::Type resource_type, 43 ResourceType::Type resource_type,
46 const GURL& request_url); 44 const GURL& request_url);
47 45
48 // Removes a request from the pending_requests_ list, returning true if the 46 // Removes a request from the pending_requests_ list, returning true if the
49 // request was found and removed. 47 // request was found and removed.
50 bool RemovePendingRequest(int request_id); 48 bool RemovePendingRequest(int request_id);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 141
144 // All pending requests issued to the host 142 // All pending requests issued to the host
145 PendingRequestList pending_requests_; 143 PendingRequestList pending_requests_;
146 144
147 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; 145 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_;
148 146
149 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 147 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
150 }; 148 };
151 149
152 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H_ 150 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698