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

Side by Side Diff: content/public/browser/render_process_host.h

Issue 11308024: Fixing guest processes to use the proper storage partition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment to test. Created 8 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
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_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/process.h" 10 #include "base/process.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Track the count of visible widgets. Called by listeners to register and 87 // Track the count of visible widgets. Called by listeners to register and
88 // unregister visibility. 88 // unregister visibility.
89 virtual void WidgetRestored() = 0; 89 virtual void WidgetRestored() = 0;
90 virtual void WidgetHidden() = 0; 90 virtual void WidgetHidden() = 0;
91 virtual int VisibleWidgetCount() const = 0; 91 virtual int VisibleWidgetCount() const = 0;
92 92
93 // Indicates whether the current RenderProcessHost associated with a guest 93 // Indicates whether the current RenderProcessHost associated with a guest
94 // renderer process. 94 // renderer process.
95 virtual bool IsGuest() const = 0; 95 virtual bool IsGuest() const = 0;
96 96
97 // Returns the storage partition associated with this process.
98 //
99 // TODO(nasko): Remove this function from the public API once
100 // URLRequestContextGetter's creation is moved into StoragePartition.
101 virtual StoragePartition* GetStoragePartition() const = 0;
102
97 // Try to shutdown the associated renderer process as fast as possible. 103 // Try to shutdown the associated renderer process as fast as possible.
98 // If this renderer has any RenderViews with unload handlers, then this 104 // If this renderer has any RenderViews with unload handlers, then this
99 // function does nothing. The current implementation uses TerminateProcess. 105 // function does nothing. The current implementation uses TerminateProcess.
100 // Returns True if it was able to do fast shutdown. 106 // Returns True if it was able to do fast shutdown.
101 virtual bool FastShutdownIfPossible() = 0; 107 virtual bool FastShutdownIfPossible() = 0;
102 108
103 // Returns true if fast shutdown was started for the renderer. 109 // Returns true if fast shutdown was started for the renderer.
104 virtual bool FastShutdownStarted() const = 0; 110 virtual bool FastShutdownStarted() const = 0;
105 111
106 // Dump the child process' handle table before shutting down. 112 // Dump the child process' handle table before shutting down.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 static void SetMaxRendererProcessCount(size_t count); 253 static void SetMaxRendererProcessCount(size_t count);
248 254
249 // Returns the current max number of renderer processes used by the content 255 // Returns the current max number of renderer processes used by the content
250 // module. 256 // module.
251 static size_t GetMaxRendererProcessCount(); 257 static size_t GetMaxRendererProcessCount();
252 }; 258 };
253 259
254 } // namespace content. 260 } // namespace content.
255 261
256 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 262 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698