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

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

Issue 11147026: Initial refactor to get profiles to propagate storage partition details. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed a merging of removed variable. 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 // http://crbug.com/158595
102 virtual StoragePartition* GetStoragePartition() const = 0;
103
97 // Try to shutdown the associated renderer process as fast as possible. 104 // Try to shutdown the associated renderer process as fast as possible.
98 // If this renderer has any RenderViews with unload handlers, then this 105 // If this renderer has any RenderViews with unload handlers, then this
99 // function does nothing. The current implementation uses TerminateProcess. 106 // function does nothing. The current implementation uses TerminateProcess.
100 // Returns True if it was able to do fast shutdown. 107 // Returns True if it was able to do fast shutdown.
101 virtual bool FastShutdownIfPossible() = 0; 108 virtual bool FastShutdownIfPossible() = 0;
102 109
103 // Returns true if fast shutdown was started for the renderer. 110 // Returns true if fast shutdown was started for the renderer.
104 virtual bool FastShutdownStarted() const = 0; 111 virtual bool FastShutdownStarted() const = 0;
105 112
106 // Dump the child process' handle table before shutting down. 113 // 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); 254 static void SetMaxRendererProcessCount(size_t count);
248 255
249 // Returns the current max number of renderer processes used by the content 256 // Returns the current max number of renderer processes used by the content
250 // module. 257 // module.
251 static size_t GetMaxRendererProcessCount(); 258 static size_t GetMaxRendererProcessCount();
252 }; 259 };
253 260
254 } // namespace content. 261 } // namespace content.
255 262
256 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 263 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698