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

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

Issue 1093923003: Change FrameTreeNode id from int64 to int. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change FrameTreeNode id from int64 to int Created 5 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NAVIGATION_URL_LOADER_FACTORY_H_ 5 #ifndef CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_FACTORY_H_
6 #define CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_FACTORY_H_ 6 #define CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_FACTORY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/loader/navigation_url_loader_factory.h" 9 #include "content/browser/loader/navigation_url_loader_factory.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class NavigationURLLoader; 13 class NavigationURLLoader;
14 14
15 // PlzNavigate 15 // PlzNavigate
16 // Manages creation of the NavigationURLLoaders; when registered, all created 16 // Manages creation of the NavigationURLLoaders; when registered, all created
17 // NavigationURLLoaderss will be TestNavigationURLLoaderss. This automatically 17 // NavigationURLLoaderss will be TestNavigationURLLoaderss. This automatically
18 // registers itself when it goes in scope, and unregisters itself when it goes 18 // registers itself when it goes in scope, and unregisters itself when it goes
19 // out of scope. Since you can't have more than one factory registered at a 19 // out of scope. Since you can't have more than one factory registered at a
20 // time, you can only have one of these objects at a time. 20 // time, you can only have one of these objects at a time.
21 class TestNavigationURLLoaderFactory : public NavigationURLLoaderFactory { 21 class TestNavigationURLLoaderFactory : public NavigationURLLoaderFactory {
22 public: 22 public:
23 TestNavigationURLLoaderFactory(); 23 TestNavigationURLLoaderFactory();
24 ~TestNavigationURLLoaderFactory() override; 24 ~TestNavigationURLLoaderFactory() override;
25 25
26 // TestNavigationURLLoaderFactory implementation. 26 // TestNavigationURLLoaderFactory implementation.
27 scoped_ptr<NavigationURLLoader> CreateLoader( 27 scoped_ptr<NavigationURLLoader> CreateLoader(
28 BrowserContext* browser_context, 28 BrowserContext* browser_context,
29 int64 frame_tree_node_id, 29 int frame_tree_node_id,
30 scoped_ptr<NavigationRequestInfo> request_info, 30 scoped_ptr<NavigationRequestInfo> request_info,
31 NavigationURLLoaderDelegate* delegate) override; 31 NavigationURLLoaderDelegate* delegate) override;
32 32
33 private: 33 private:
34 DISALLOW_COPY_AND_ASSIGN(TestNavigationURLLoaderFactory); 34 DISALLOW_COPY_AND_ASSIGN(TestNavigationURLLoaderFactory);
35 }; 35 };
36 36
37 } // namespace content 37 } // namespace content
38 38
39 #endif // CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_FACTORY_H_ 39 #endif // CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_FACTORY_H_
OLDNEW
« no previous file with comments | « content/public/browser/page_navigator.cc ('k') | content/test/test_navigation_url_loader_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698