Index: content/public/browser/navigation_handle.h |
diff --git a/content/public/browser/navigation_handle.h b/content/public/browser/navigation_handle.h |
index 7f1e8ab7111b27370271d709a85602ea5242a041..96b14ef6da138ec6f3241f3cab915ac7f10822ed 100644 |
--- a/content/public/browser/navigation_handle.h |
+++ b/content/public/browser/navigation_handle.h |
@@ -89,8 +89,13 @@ class CONTENT_EXPORT NavigationHandle { |
// This corresponds to NavigationThrottle::WillSendRequest. They should not |
// be queried before that. |
- // Whether the navigation is a POST or a GET. This may change during the |
- // navigation when encountering a server redirect. |
+ // Whether the navigation is done using HTTP POST method. This may change |
+ // during the navigation (e.g. after encountering a server redirect). |
Łukasz Anforowicz
2016/06/02 22:07:04
It was misleading (IMO) to say "GET", when in real
|
+ // |
+ // Note: page and frame navigations can only be done using HTTP POST or HTTP |
+ // GET methods (and using other, scheme-specific protocols for non-http(s) URI |
+ // schemes like data: or file:). Therefore //content public API exposes only |
+ // |bool IsPost()| as opposed to |const std::string& GetMethod()| method. |
virtual bool IsPost() = 0; |
// Returns a sanitized version of the referrer for this request. |