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

Side by Side Diff: content/browser/loader/navigation_url_loader.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_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 16 matching lines...) Expand all
27 // Creates a NavigationURLLoader. The caller is responsible for ensuring that 27 // Creates a NavigationURLLoader. The caller is responsible for ensuring that
28 // |delegate| outlives the loader. |request_body| must not be accessed on the 28 // |delegate| outlives the loader. |request_body| must not be accessed on the
29 // UI thread after this point. 29 // UI thread after this point.
30 // 30 //
31 // TODO(davidben): When navigation is disentangled from the loader, the 31 // TODO(davidben): When navigation is disentangled from the loader, the
32 // request parameters should not come in as a navigation-specific 32 // request parameters should not come in as a navigation-specific
33 // structure. Information like has_user_gesture and 33 // structure. Information like has_user_gesture and
34 // should_replace_current_entry shouldn't be needed at this layer. 34 // should_replace_current_entry shouldn't be needed at this layer.
35 static scoped_ptr<NavigationURLLoader> Create( 35 static scoped_ptr<NavigationURLLoader> Create(
36 BrowserContext* browser_context, 36 BrowserContext* browser_context,
37 int64 frame_tree_node_id, 37 int frame_tree_node_id,
38 scoped_ptr<NavigationRequestInfo> request_info, 38 scoped_ptr<NavigationRequestInfo> request_info,
39 NavigationURLLoaderDelegate* delegate); 39 NavigationURLLoaderDelegate* delegate);
40 40
41 // For testing purposes; sets the factory for use in testing. 41 // For testing purposes; sets the factory for use in testing.
42 static void SetFactoryForTesting(NavigationURLLoaderFactory* factory); 42 static void SetFactoryForTesting(NavigationURLLoaderFactory* factory);
43 43
44 virtual ~NavigationURLLoader() {} 44 virtual ~NavigationURLLoader() {}
45 45
46 // Called in response to OnRequestRedirected to continue processing the 46 // Called in response to OnRequestRedirected to continue processing the
47 // request. 47 // request.
48 virtual void FollowRedirect() = 0; 48 virtual void FollowRedirect() = 0;
49 49
50 protected: 50 protected:
51 NavigationURLLoader() {} 51 NavigationURLLoader() {}
52 52
53 private: 53 private:
54 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoader); 54 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoader);
55 }; 55 };
56 56
57 } // namespace content 57 } // namespace content
58 58
59 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ 59 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigator_impl.cc ('k') | content/browser/loader/navigation_url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698