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

Side by Side Diff: content/test/test_render_view_host_factory.h

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | content/test/test_render_view_host_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TEST_TEST_RENDER_VIEW_HOST_FACTORY_H_ 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_FACTORY_H_
6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_FACTORY_H_ 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_FACTORY_H_
7 7
8 #include "base/basictypes.h" 8 #include <stdint.h>
9
9 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
10 #include "content/browser/renderer_host/render_view_host_factory.h" 12 #include "content/browser/renderer_host/render_view_host_factory.h"
11 13
12 namespace content { 14 namespace content {
13 15
14 class SiteInstance; 16 class SiteInstance;
15 class RenderViewHostDelegate; 17 class RenderViewHostDelegate;
16 class RenderProcessHostFactory; 18 class RenderProcessHostFactory;
17 class SessionStorageNamespace; 19 class SessionStorageNamespace;
18 20
19 // Manages creation of the RenderViewHosts using our special subclass. This 21 // Manages creation of the RenderViewHosts using our special subclass. This
20 // automatically registers itself when it goes in scope, and unregisters itself 22 // automatically registers itself when it goes in scope, and unregisters itself
21 // when it goes out of scope. Since you can't have more than one factory 23 // when it goes out of scope. Since you can't have more than one factory
22 // registered at a time, you can only have one of these objects at a time. 24 // registered at a time, you can only have one of these objects at a time.
23 class TestRenderViewHostFactory : public RenderViewHostFactory { 25 class TestRenderViewHostFactory : public RenderViewHostFactory {
24 public: 26 public:
25 explicit TestRenderViewHostFactory(RenderProcessHostFactory* rph_factory); 27 explicit TestRenderViewHostFactory(RenderProcessHostFactory* rph_factory);
26 ~TestRenderViewHostFactory() override; 28 ~TestRenderViewHostFactory() override;
27 29
28 virtual void set_render_process_host_factory( 30 virtual void set_render_process_host_factory(
29 RenderProcessHostFactory* rph_factory); 31 RenderProcessHostFactory* rph_factory);
30 RenderViewHost* CreateRenderViewHost( 32 RenderViewHost* CreateRenderViewHost(
31 SiteInstance* instance, 33 SiteInstance* instance,
32 RenderViewHostDelegate* delegate, 34 RenderViewHostDelegate* delegate,
33 RenderWidgetHostDelegate* widget_delegate, 35 RenderWidgetHostDelegate* widget_delegate,
34 int32 routing_id, 36 int32_t routing_id,
35 int32 main_frame_routing_id, 37 int32_t main_frame_routing_id,
36 bool swapped_out) override; 38 bool swapped_out) override;
37 39
38 private: 40 private:
39 DISALLOW_COPY_AND_ASSIGN(TestRenderViewHostFactory); 41 DISALLOW_COPY_AND_ASSIGN(TestRenderViewHostFactory);
40 }; 42 };
41 43
42 } // namespace content 44 } // namespace content
43 45
44 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_FACTORY_H_ 46 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | content/test/test_render_view_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698