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

Side by Side Diff: content/browser/frame_host/navigation_entry_impl.h

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: fix ContentResourceProviderTest Created 3 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "content/browser/frame_host/frame_navigation_entry.h" 17 #include "content/browser/frame_host/frame_navigation_entry.h"
18 #include "content/browser/frame_host/frame_tree_node.h" 18 #include "content/browser/frame_host/frame_tree_node.h"
19 #include "content/browser/site_instance_impl.h" 19 #include "content/browser/site_instance_impl.h"
20 #include "content/common/frame_message_enums.h" 20 #include "content/common/frame_message_enums.h"
21 #include "content/common/resource_request_body_impl.h" 21 #include "content/common/resource_request_body_impl.h"
22 #include "content/public/browser/favicon_status.h" 22 #include "content/public/browser/favicon_status.h"
23 #include "content/public/browser/global_request_id.h" 23 #include "content/public/browser/global_request_id.h"
24 #include "content/public/browser/navigation_entry.h" 24 #include "content/public/browser/navigation_entry.h"
25 #include "content/public/browser/reload_type.h" 25 #include "content/public/browser/reload_type.h"
26 #include "content/public/browser/restore_type.h" 26 #include "content/public/browser/restore_type.h"
27 #include "content/public/browser/ssl_status.h" 27 #include "content/public/browser/ssl_status.h"
28 #include "content/public/common/page_state.h" 28 #include "content/public/common/page_state.h"
29 #include "content/public/common/previews_state.h"
29 30
30 namespace content { 31 namespace content {
31 class ResourceRequestBodyImpl; 32 class ResourceRequestBodyImpl;
32 struct CommonNavigationParams; 33 struct CommonNavigationParams;
33 struct RequestNavigationParams; 34 struct RequestNavigationParams;
34 struct StartNavigationParams; 35 struct StartNavigationParams;
35 36
36 class CONTENT_EXPORT NavigationEntryImpl 37 class CONTENT_EXPORT NavigationEntryImpl
37 : public NON_EXPORTED_BASE(NavigationEntry) { 38 : public NON_EXPORTED_BASE(NavigationEntry) {
38 public: 39 public:
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 FrameTreeNode* root_frame_tree_node) const; 174 FrameTreeNode* root_frame_tree_node) const;
174 175
175 // Helper functions to construct NavigationParameters for a navigation to this 176 // Helper functions to construct NavigationParameters for a navigation to this
176 // NavigationEntry. 177 // NavigationEntry.
177 CommonNavigationParams ConstructCommonNavigationParams( 178 CommonNavigationParams ConstructCommonNavigationParams(
178 const FrameNavigationEntry& frame_entry, 179 const FrameNavigationEntry& frame_entry,
179 const scoped_refptr<ResourceRequestBodyImpl>& post_body, 180 const scoped_refptr<ResourceRequestBodyImpl>& post_body,
180 const GURL& dest_url, 181 const GURL& dest_url,
181 const Referrer& dest_referrer, 182 const Referrer& dest_referrer,
182 FrameMsg_Navigate_Type::Value navigation_type, 183 FrameMsg_Navigate_Type::Value navigation_type,
183 LoFiState lofi_state, 184 PreviewsState previews_state,
184 const base::TimeTicks& navigation_start) const; 185 const base::TimeTicks& navigation_start) const;
185 StartNavigationParams ConstructStartNavigationParams() const; 186 StartNavigationParams ConstructStartNavigationParams() const;
186 RequestNavigationParams ConstructRequestNavigationParams( 187 RequestNavigationParams ConstructRequestNavigationParams(
187 const FrameNavigationEntry& frame_entry, 188 const FrameNavigationEntry& frame_entry,
188 bool is_same_document_history_load, 189 bool is_same_document_history_load,
189 bool is_history_navigation_in_new_child, 190 bool is_history_navigation_in_new_child,
190 const std::map<std::string, bool>& subframe_unique_names, 191 const std::map<std::string, bool>& subframe_unique_names,
191 bool has_committed_real_load, 192 bool has_committed_real_load,
192 bool intended_as_new_entry, 193 bool intended_as_new_entry,
193 int pending_offset_to_send, 194 int pending_offset_to_send,
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 // Set to true if the navigation controller gets notified about a SSL error 552 // Set to true if the navigation controller gets notified about a SSL error
552 // for a pending navigation. Defaults to false. 553 // for a pending navigation. Defaults to false.
553 bool ssl_error_; 554 bool ssl_error_;
554 555
555 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); 556 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl);
556 }; 557 };
557 558
558 } // namespace content 559 } // namespace content
559 560
560 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 561 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/save_file_manager.cc ('k') | content/browser/frame_host/navigation_entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698