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

Side by Side Diff: ios/web/public/navigation_item.h

Issue 2378123002: Load offline page if reading list entry takes more than 1s to load. (Closed)
Patch Set: Experimental change (reviewers: do not review this PS). Created 4 years, 2 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 IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ 5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_
6 #define IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ 6 #define IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // |true| if this item is the result of a POST request with data. 111 // |true| if this item is the result of a POST request with data.
112 virtual bool HasPostData() const = 0; 112 virtual bool HasPostData() const = 0;
113 113
114 // Returns the item's current http request headers. 114 // Returns the item's current http request headers.
115 virtual NSDictionary* GetHttpRequestHeaders() const = 0; 115 virtual NSDictionary* GetHttpRequestHeaders() const = 0;
116 116
117 // Adds headers from |additional_headers| to the item's http request headers. 117 // Adds headers from |additional_headers| to the item's http request headers.
118 // Existing headers with the same key will be overridden. 118 // Existing headers with the same key will be overridden.
119 virtual void AddHttpRequestHeaders(NSDictionary* additional_headers) = 0; 119 virtual void AddHttpRequestHeaders(NSDictionary* additional_headers) = 0;
120
121 virtual NSDictionary* GetExtraData() const = 0;
120 }; 122 };
121 123
122 } // namespace web 124 } // namespace web
123 125
124 #endif // IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ 126 #endif // IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698