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

Side by Side Diff: content/public/browser/navigation_controller.h

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr comments and rebase Created 5 years, 1 month 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 (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_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 25 matching lines...) Expand all
36 // manages all navigation within that list. 36 // manages all navigation within that list.
37 // 37 //
38 // Each NavigationController belongs to one WebContents; each WebContents has 38 // Each NavigationController belongs to one WebContents; each WebContents has
39 // exactly one NavigationController. 39 // exactly one NavigationController.
40 class NavigationController { 40 class NavigationController {
41 public: 41 public:
42 enum ReloadType { 42 enum ReloadType {
43 NO_RELOAD, // Normal load. 43 NO_RELOAD, // Normal load.
44 RELOAD, // Normal (cache-validating) reload. 44 RELOAD, // Normal (cache-validating) reload.
45 RELOAD_IGNORING_CACHE, // Reload bypassing the cache (shift-reload). 45 RELOAD_IGNORING_CACHE, // Reload bypassing the cache (shift-reload).
46 RELOAD_ORIGINAL_REQUEST_URL // Reload using the original request URL. 46 RELOAD_ORIGINAL_REQUEST_URL, // Reload using the original request URL.
47 RELOAD_DISABLE_LOFI_MODE // Reload with Lo-Fi mode disabled.
47 }; 48 };
48 49
49 // Load type used in LoadURLParams. 50 // Load type used in LoadURLParams.
50 // 51 //
51 // A Java counterpart will be generated for this enum. 52 // A Java counterpart will be generated for this enum.
52 // GENERATED_JAVA_ENUM_PACKAGE: ( 53 // GENERATED_JAVA_ENUM_PACKAGE: (
53 // org.chromium.content_public.browser.navigation_controller) 54 // org.chromium.content_public.browser.navigation_controller)
54 // GENERATED_JAVA_PREFIX_TO_STRIP: LOAD_TYPE_ 55 // GENERATED_JAVA_PREFIX_TO_STRIP: LOAD_TYPE_
55 enum LoadURLType { 56 enum LoadURLType {
56 // For loads that do not fall into any types below. 57 // For loads that do not fall into any types below.
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 virtual void Reload(bool check_for_repost) = 0; 359 virtual void Reload(bool check_for_repost) = 0;
359 360
360 // Like Reload(), but don't use caches (aka "shift-reload"). 361 // Like Reload(), but don't use caches (aka "shift-reload").
361 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; 362 virtual void ReloadIgnoringCache(bool check_for_repost) = 0;
362 363
363 // Reloads the current entry using the original URL used to create it. This 364 // Reloads the current entry using the original URL used to create it. This
364 // is used for cases where the user wants to refresh a page using a different 365 // is used for cases where the user wants to refresh a page using a different
365 // user agent after following a redirect. 366 // user agent after following a redirect.
366 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0; 367 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0;
367 368
369 // Like Reload(), but disables Lo-Fi.
370 virtual void ReloadDisableLoFi(bool check_for_repost) = 0;
371
368 // Removing of entries ------------------------------------------------------- 372 // Removing of entries -------------------------------------------------------
369 373
370 // Removes the entry at the specified |index|. If the index is the last 374 // Removes the entry at the specified |index|. If the index is the last
371 // committed index or the pending entry, this does nothing and returns false. 375 // committed index or the pending entry, this does nothing and returns false.
372 // Otherwise this call discards any transient or pending entries. 376 // Otherwise this call discards any transient or pending entries.
373 virtual bool RemoveEntryAtIndex(int index) = 0; 377 virtual bool RemoveEntryAtIndex(int index) = 0;
374 378
375 // Random -------------------------------------------------------------------- 379 // Random --------------------------------------------------------------------
376 380
377 // Session storage depends on dom_storage that depends on blink::WebString, 381 // Session storage depends on dom_storage that depends on blink::WebString,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 476
473 private: 477 private:
474 // This interface should only be implemented inside content. 478 // This interface should only be implemented inside content.
475 friend class NavigationControllerImpl; 479 friend class NavigationControllerImpl;
476 NavigationController() {} 480 NavigationController() {}
477 }; 481 };
478 482
479 } // namespace content 483 } // namespace content
480 484
481 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 485 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | content/public/browser/resource_dispatcher_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698