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

Side by Side Diff: content/child/child_thread.h

Issue 267973002: Revert of Remove webkit's ResourceLoaderBridge interface. (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
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/child_thread.cc » ('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) 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_CHILD_CHILD_THREAD_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_H_
6 #define CONTENT_CHILD_CHILD_THREAD_H_ 6 #define CONTENT_CHILD_CHILD_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual ~ChildThread(); 72 virtual ~ChildThread();
73 virtual void Shutdown(); 73 virtual void Shutdown();
74 74
75 // IPC::Sender implementation: 75 // IPC::Sender implementation:
76 virtual bool Send(IPC::Message* msg) OVERRIDE; 76 virtual bool Send(IPC::Message* msg) OVERRIDE;
77 77
78 IPC::SyncChannel* channel() { return channel_.get(); } 78 IPC::SyncChannel* channel() { return channel_.get(); }
79 79
80 MessageRouter* GetRouter(); 80 MessageRouter* GetRouter();
81 81
82 // Creates a ResourceLoaderBridge.
83 // Tests can override this method if they want a custom loading behavior.
84 virtual webkit_glue::ResourceLoaderBridge* CreateBridge(
85 const RequestInfo& request_info);
86
82 // Allocates a block of shared memory of the given size and 87 // Allocates a block of shared memory of the given size and
83 // maps in into the address space. Returns NULL of failure. 88 // maps in into the address space. Returns NULL of failure.
84 // Note: On posix, this requires a sync IPC to the browser process, 89 // Note: On posix, this requires a sync IPC to the browser process,
85 // but on windows the child process directly allocates the block. 90 // but on windows the child process directly allocates the block.
86 base::SharedMemory* AllocateSharedMemory(size_t buf_size); 91 base::SharedMemory* AllocateSharedMemory(size_t buf_size);
87 92
88 // A static variant that can be called on background threads provided 93 // A static variant that can be called on background threads provided
89 // the |sender| passed in is safe to use on background threads. 94 // the |sender| passed in is safe to use on background threads.
90 static base::SharedMemory* AllocateSharedMemory(size_t buf_size, 95 static base::SharedMemory* AllocateSharedMemory(size_t buf_size,
91 IPC::Sender* sender); 96 IPC::Sender* sender);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 scoped_ptr<base::PowerMonitor> power_monitor_; 258 scoped_ptr<base::PowerMonitor> power_monitor_;
254 259
255 bool in_browser_process_; 260 bool in_browser_process_;
256 261
257 DISALLOW_COPY_AND_ASSIGN(ChildThread); 262 DISALLOW_COPY_AND_ASSIGN(ChildThread);
258 }; 263 };
259 264
260 } // namespace content 265 } // namespace content
261 266
262 #endif // CONTENT_CHILD_CHILD_THREAD_H_ 267 #endif // CONTENT_CHILD_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698