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

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

Issue 226273005: Remove webkit's ResourceLoaderBridge interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: StartSync -> StartAsync -> Cancel - change StartAsync to request request_id Created 6 years, 8 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_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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual ~ChildThread(); 68 virtual ~ChildThread();
69 virtual void Shutdown(); 69 virtual void Shutdown();
70 70
71 // IPC::Sender implementation: 71 // IPC::Sender implementation:
72 virtual bool Send(IPC::Message* msg) OVERRIDE; 72 virtual bool Send(IPC::Message* msg) OVERRIDE;
73 73
74 IPC::SyncChannel* channel() { return channel_.get(); } 74 IPC::SyncChannel* channel() { return channel_.get(); }
75 75
76 MessageRouter* GetRouter(); 76 MessageRouter* GetRouter();
77 77
78 // Creates a ResourceLoaderBridge.
79 // Tests can override this method if they want a custom loading behavior.
80 virtual webkit_glue::ResourceLoaderBridge* CreateBridge(
81 const RequestInfo& request_info);
82
83 // Allocates a block of shared memory of the given size and 78 // Allocates a block of shared memory of the given size and
84 // maps in into the address space. Returns NULL of failure. 79 // maps in into the address space. Returns NULL of failure.
85 // Note: On posix, this requires a sync IPC to the browser process, 80 // Note: On posix, this requires a sync IPC to the browser process,
86 // but on windows the child process directly allocates the block. 81 // but on windows the child process directly allocates the block.
87 base::SharedMemory* AllocateSharedMemory(size_t buf_size); 82 base::SharedMemory* AllocateSharedMemory(size_t buf_size);
88 83
89 // A static variant that can be called on background threads provided 84 // A static variant that can be called on background threads provided
90 // the |sender| passed in is safe to use on background threads. 85 // the |sender| passed in is safe to use on background threads.
91 static base::SharedMemory* AllocateSharedMemory(size_t buf_size, 86 static base::SharedMemory* AllocateSharedMemory(size_t buf_size,
92 IPC::Sender* sender); 87 IPC::Sender* sender);
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 scoped_ptr<base::PowerMonitor> power_monitor_; 242 scoped_ptr<base::PowerMonitor> power_monitor_;
248 243
249 bool in_browser_process_; 244 bool in_browser_process_;
250 245
251 DISALLOW_COPY_AND_ASSIGN(ChildThread); 246 DISALLOW_COPY_AND_ASSIGN(ChildThread);
252 }; 247 };
253 248
254 } // namespace content 249 } // namespace content
255 250
256 #endif // CONTENT_CHILD_CHILD_THREAD_H_ 251 #endif // CONTENT_CHILD_CHILD_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698