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

Unified Diff: content/public/common/frame_navigate_params.h

Issue 8603015: Get rid of a bunch of view_messages.h includes from chrome by making the TabContentsObserver inte... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux and try to fix mac again Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/frame_navigate_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/frame_navigate_params.h
===================================================================
--- content/public/common/frame_navigate_params.h (revision 0)
+++ content/public/common/frame_navigate_params.h (revision 0)
@@ -0,0 +1,67 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_
+#define CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_
+#pragma once
+
+#include <string>
+#include <vector>
+
+#include "content/common/content_export.h"
+#include "content/public/common/page_transition_types.h"
+#include "googleurl/src/gurl.h"
+#include "net/base/host_port_pair.h"
+#include "webkit/glue/password_form.h"
+
+namespace content {
+
+// Struct used by TabContentsObserver.
+struct CONTENT_EXPORT FrameNavigateParams {
+ FrameNavigateParams();
+ ~FrameNavigateParams();
+
+ // Page ID of this navigation. The renderer creates a new unique page ID
+ // anytime a new session history entry is created. This means you'll get new
+ // page IDs for user actions, and the old page IDs will be reloaded when
+ // iframes are loaded automatically.
+ int32 page_id;
+
+ // URL of the page being loaded.
+ GURL url;
+
+ // URL of the referrer of this load. WebKit generates this based on the
+ // source of the event that caused the load.
+ GURL referrer;
+
+ // The type of transition.
+ PageTransition transition;
+
+ // Lists the redirects that occurred on the way to the current page. This
+ // vector has the same format as reported by the WebDataSource in the glue,
+ // with the current page being the last one in the list (so even when
+ // there's no redirect, there will be one entry in the list.
+ std::vector<GURL> redirects;
+
+ // Set to false if we want to update the session history but not update
+ // the browser history. E.g., on unreachable urls.
+ bool should_update_history;
+
+ // See SearchableFormData for a description of these.
+ GURL searchable_form_url;
+ std::string searchable_form_encoding;
+
+ // See password_form.h.
+ webkit_glue::PasswordForm password_form;
+
+ // Contents MIME type of main frame.
+ std::string contents_mime_type;
+
+ // Remote address of the socket which fetched this resource.
+ net::HostPortPair socket_address;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_
Property changes on: content\public\common\frame_navigate_params.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/frame_navigate_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698