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

Unified Diff: chrome/browser/tab_contents/provisional_load_details.h

Issue 3436002: Add the onBeforeNavigate and onErrorOccured events to the webNavigation API. (Closed)
Patch Set: updates Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/provisional_load_details.h
diff --git a/chrome/browser/tab_contents/provisional_load_details.h b/chrome/browser/tab_contents/provisional_load_details.h
index 92ac9b1405e2b54756c5f23c7ab00da7286652c1..2073db0573f5497f44fa06c198bc1839eadb8c19 100644
--- a/chrome/browser/tab_contents/provisional_load_details.h
+++ b/chrome/browser/tab_contents/provisional_load_details.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/basictypes.h"
+#include "chrome/common/page_transition_types.h"
#include "googleurl/src/gurl.h"
// This class captures some of the information associated to the provisional
@@ -32,6 +33,13 @@ class ProvisionalLoadDetails {
void set_error_code(int error_code) { error_code_ = error_code; }
int error_code() const { return error_code_; }
+ void set_transition_type(PageTransition::Type transition_type) {
+ transition_type_ = transition_type;
+ }
+ PageTransition::Type transition_type() const {
+ return transition_type_;
+ }
+
const GURL& url() const { return url_; }
bool main_frame() const { return is_main_frame_; }
@@ -50,6 +58,7 @@ class ProvisionalLoadDetails {
private:
int error_code_;
+ PageTransition::Type transition_type_;
GURL url_;
bool is_main_frame_;
bool is_in_page_navigation_;
« no previous file with comments | « chrome/browser/extensions/extension_webnavigation_api.cc ('k') | chrome/browser/tab_contents/provisional_load_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698