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

Side by Side Diff: content/browser/renderer_host/render_view_host_factory.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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 #include "content/browser/renderer_host/render_view_host_factory.h" 5 #include "content/browser/renderer_host/render_view_host_factory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 9
10 using content::RenderViewHost;
11 using content::RenderViewHostImpl;
10 using content::SessionStorageNamespace; 12 using content::SessionStorageNamespace;
11 using content::SiteInstance; 13 using content::SiteInstance;
12 14
13 // static 15 // static
14 RenderViewHostFactory* RenderViewHostFactory::factory_ = NULL; 16 RenderViewHostFactory* RenderViewHostFactory::factory_ = NULL;
15 17
16 // static 18 // static
17 RenderViewHost* RenderViewHostFactory::Create( 19 RenderViewHost* RenderViewHostFactory::Create(
18 SiteInstance* instance, 20 SiteInstance* instance,
19 content::RenderViewHostDelegate* delegate, 21 content::RenderViewHostDelegate* delegate,
(...skipping 11 matching lines...) Expand all
31 void RenderViewHostFactory::RegisterFactory(RenderViewHostFactory* factory) { 33 void RenderViewHostFactory::RegisterFactory(RenderViewHostFactory* factory) {
32 DCHECK(!factory_) << "Can't register two factories at once."; 34 DCHECK(!factory_) << "Can't register two factories at once.";
33 factory_ = factory; 35 factory_ = factory;
34 } 36 }
35 37
36 // static 38 // static
37 void RenderViewHostFactory::UnregisterFactory() { 39 void RenderViewHostFactory::UnregisterFactory() {
38 DCHECK(factory_) << "No factory to unregister."; 40 DCHECK(factory_) << "No factory to unregister.";
39 factory_ = NULL; 41 factory_ = NULL;
40 } 42 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_factory.h ('k') | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698