| Index: chrome/browser/tab_contents/provisional_load_details.h
|
| ===================================================================
|
| --- chrome/browser/tab_contents/provisional_load_details.h (revision 75329)
|
| +++ chrome/browser/tab_contents/provisional_load_details.h (working copy)
|
| @@ -6,77 +6,7 @@
|
| #define CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_
|
| #pragma once
|
|
|
| -#include <string>
|
| +// TODO(jam): remove this file when all files have been converted.
|
| +#include "content/browser/tab_contents/provisional_load_details.h"
|
|
|
| -#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
|
| -// load of a frame. It is provided as Details with the
|
| -// NOTIFY_FRAME_PROVISIONAL_LOAD_START, NOTIFY_FRAME_PROVISIONAL_LOAD_COMMITTED
|
| -// and NOTIFY_FAIL_PROVISIONAL_LOAD_WITH_ERROR notifications
|
| -// (see notification_types.h).
|
| -
|
| -// TODO(brettw) this mostly duplicates
|
| -// NavigationController::LoadCommittedDetails, it would be nice to unify these
|
| -// somehow.
|
| -class ProvisionalLoadDetails {
|
| - public:
|
| - ProvisionalLoadDetails(bool main_frame,
|
| - bool in_page_navigation,
|
| - const GURL& url,
|
| - const std::string& security_info,
|
| - bool is_filtered,
|
| - bool is_error_page,
|
| - int64 frame_id);
|
| - virtual ~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_; }
|
| -
|
| - bool in_page_navigation() const { return is_in_page_navigation_; }
|
| -
|
| - int ssl_cert_id() const { return ssl_cert_id_; }
|
| -
|
| - int ssl_cert_status() const { return ssl_cert_status_; }
|
| -
|
| - int ssl_security_bits() const { return ssl_security_bits_; }
|
| -
|
| - int ssl_connection_status() const { return ssl_connection_status_; }
|
| -
|
| - bool is_content_filtered() const { return is_content_filtered_; }
|
| -
|
| - bool is_error_page() const { return is_error_page_; }
|
| -
|
| - int64 frame_id() const { return frame_id_; }
|
| -
|
| - private:
|
| - int error_code_;
|
| - PageTransition::Type transition_type_;
|
| - GURL url_;
|
| - bool is_main_frame_;
|
| - bool is_in_page_navigation_;
|
| - int ssl_cert_id_;
|
| - int ssl_cert_status_;
|
| - int ssl_security_bits_;
|
| - int ssl_connection_status_;
|
| - bool is_content_filtered_;
|
| - bool is_error_page_;
|
| - int64 frame_id_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(ProvisionalLoadDetails);
|
| -};
|
| -
|
| #endif // CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_
|
|
|