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

Side by Side Diff: content/renderer/history_controller.h

Issue 1858533002: Introduce WebCachePolicy to merge cache policy enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hiroshige review Created 4 years, 8 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 /* 5 /*
6 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
8 * (http://www.torchmobile.com/) 8 * (http://www.torchmobile.com/)
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
(...skipping 24 matching lines...) Expand all
35 #ifndef CONTENT_RENDERER_HISTORY_CONTROLLER_H_ 35 #ifndef CONTENT_RENDERER_HISTORY_CONTROLLER_H_
36 #define CONTENT_RENDERER_HISTORY_CONTROLLER_H_ 36 #define CONTENT_RENDERER_HISTORY_CONTROLLER_H_
37 37
38 #include <utility> 38 #include <utility>
39 39
40 #include "base/containers/hash_tables.h" 40 #include "base/containers/hash_tables.h"
41 #include "base/macros.h" 41 #include "base/macros.h"
42 #include "base/memory/scoped_ptr.h" 42 #include "base/memory/scoped_ptr.h"
43 #include "content/common/content_export.h" 43 #include "content/common/content_export.h"
44 #include "content/renderer/history_entry.h" 44 #include "content/renderer/history_entry.h"
45 #include "third_party/WebKit/public/platform/WebURLRequest.h"
46 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" 45 #include "third_party/WebKit/public/web/WebHistoryCommitType.h"
47 #include "third_party/WebKit/public/web/WebHistoryItem.h" 46 #include "third_party/WebKit/public/web/WebHistoryItem.h"
48 47
49 namespace blink { 48 namespace blink {
50 class WebFrame; 49 class WebFrame;
51 class WebLocalFrame; 50 class WebLocalFrame;
51 enum class WebCachePolicy;
52 } 52 }
53 53
54 namespace content { 54 namespace content {
55 class RenderFrameImpl; 55 class RenderFrameImpl;
56 class RenderViewImpl; 56 class RenderViewImpl;
57 struct NavigationParams; 57 struct NavigationParams;
58 58
59 // A guide to history state in the renderer: 59 // A guide to history state in the renderer:
60 // 60 //
61 // HistoryController: Owned by RenderView, is the entry point for interacting 61 // HistoryController: Owned by RenderView, is the entry point for interacting
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 void set_provisional_entry(scoped_ptr<HistoryEntry> entry) { 116 void set_provisional_entry(scoped_ptr<HistoryEntry> entry) {
117 provisional_entry_ = std::move(entry); 117 provisional_entry_ = std::move(entry);
118 } 118 }
119 119
120 // Return true if the main frame ended up loading a request as part of the 120 // Return true if the main frame ended up loading a request as part of the
121 // history navigation. 121 // history navigation.
122 bool GoToEntry(blink::WebLocalFrame* main_frame, 122 bool GoToEntry(blink::WebLocalFrame* main_frame,
123 scoped_ptr<HistoryEntry> entry, 123 scoped_ptr<HistoryEntry> entry,
124 scoped_ptr<NavigationParams> navigation_params, 124 scoped_ptr<NavigationParams> navigation_params,
125 blink::WebURLRequest::CachePolicy cache_policy); 125 blink::WebCachePolicy cache_policy);
126 126
127 void UpdateForCommit(RenderFrameImpl* frame, 127 void UpdateForCommit(RenderFrameImpl* frame,
128 const blink::WebHistoryItem& item, 128 const blink::WebHistoryItem& item,
129 blink::WebHistoryCommitType commit_type, 129 blink::WebHistoryCommitType commit_type,
130 bool navigation_within_page); 130 bool navigation_within_page);
131 131
132 HistoryEntry* GetCurrentEntry(); 132 HistoryEntry* GetCurrentEntry();
133 blink::WebHistoryItem GetItemForNewChildFrame(RenderFrameImpl* frame) const; 133 blink::WebHistoryItem GetItemForNewChildFrame(RenderFrameImpl* frame) const;
134 void RemoveChildrenForRedirect(RenderFrameImpl* frame); 134 void RemoveChildrenForRedirect(RenderFrameImpl* frame);
135 135
(...skipping 23 matching lines...) Expand all
159 // passed into frames created after the commit that resulted from the 159 // passed into frames created after the commit that resulted from the
160 // navigation in GetItemForNewChildFrame(). 160 // navigation in GetItemForNewChildFrame().
161 scoped_ptr<NavigationParams> navigation_params_; 161 scoped_ptr<NavigationParams> navigation_params_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(HistoryController); 163 DISALLOW_COPY_AND_ASSIGN(HistoryController);
164 }; 164 };
165 165
166 } // namespace content 166 } // namespace content
167 167
168 #endif // CONTENT_RENDERER_HISTORY_CONTROLLER_H_ 168 #endif // CONTENT_RENDERER_HISTORY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/renderer/fetchers/resource_fetcher_impl.cc ('k') | content/renderer/history_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698