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

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

Issue 293093010: Rename RenderProcessHost::IsGuest to RenderProcessHost::IsIsolatedGuest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_isguest_chrome_callsites
Patch Set: Addressed comments Created 6 years, 6 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
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/kill.h" 10 #include "base/process/kill.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Called when a received message cannot be decoded. 89 // Called when a received message cannot be decoded.
90 virtual void ReceivedBadMessage() = 0; 90 virtual void ReceivedBadMessage() = 0;
91 91
92 // Track the count of visible widgets. Called by listeners to register and 92 // Track the count of visible widgets. Called by listeners to register and
93 // unregister visibility. 93 // unregister visibility.
94 virtual void WidgetRestored() = 0; 94 virtual void WidgetRestored() = 0;
95 virtual void WidgetHidden() = 0; 95 virtual void WidgetHidden() = 0;
96 virtual int VisibleWidgetCount() const = 0; 96 virtual int VisibleWidgetCount() const = 0;
97 97
98 // Indicates whether the current RenderProcessHost associated with a guest 98 // Indicates whether the current RenderProcessHost is associated with an
99 // renderer process. 99 // isolated guest renderer process. Not all guest renderers are created equal.
100 virtual bool IsGuest() const = 0; 100 // A guest, as indicated by BrowserPluginGuest::IsGuest, may coexist with
101 // other non-guest renderers in the same process if IsSIsolatedGuest is false.
nasko 2014/05/28 16:29:13 nit: IsIsolatedGuest is misspelled.
fsamuel 2014/05/28 16:37:01 Done.
102 virtual bool IsIsolatedGuest() const = 0;
101 103
102 // Returns the storage partition associated with this process. 104 // Returns the storage partition associated with this process.
103 // 105 //
104 // TODO(nasko): Remove this function from the public API once 106 // TODO(nasko): Remove this function from the public API once
105 // URLRequestContextGetter's creation is moved into StoragePartition. 107 // URLRequestContextGetter's creation is moved into StoragePartition.
106 // http://crbug.com/158595 108 // http://crbug.com/158595
107 virtual StoragePartition* GetStoragePartition() const = 0; 109 virtual StoragePartition* GetStoragePartition() const = 0;
108 110
109 // Try to shutdown the associated renderer process as fast as possible. 111 // Try to shutdown the associated renderer process as fast as possible.
110 // If this renderer has any RenderViews with unload handlers, then this 112 // If this renderer has any RenderViews with unload handlers, then this
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 static void SetMaxRendererProcessCount(size_t count); 268 static void SetMaxRendererProcessCount(size_t count);
267 269
268 // Returns the current max number of renderer processes used by the content 270 // Returns the current max number of renderer processes used by the content
269 // module. 271 // module.
270 static size_t GetMaxRendererProcessCount(); 272 static size_t GetMaxRendererProcessCount();
271 }; 273 };
272 274
273 } // namespace content. 275 } // namespace content.
274 276
275 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 277 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698