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

Side by Side Diff: chrome/browser/tab_contents/provisional_load_details.h

Issue 6537015: Start moving core pieces of Chrome multi-process code to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 // TODO(jam): remove this file when all files have been converted.
10 10 #include "content/browser/tab_contents/provisional_load_details.h"
11 #include "base/basictypes.h"
12 #include "chrome/common/page_transition_types.h"
13 #include "googleurl/src/gurl.h"
14
15 // This class captures some of the information associated to the provisional
16 // load of a frame. It is provided as Details with the
17 // NOTIFY_FRAME_PROVISIONAL_LOAD_START, NOTIFY_FRAME_PROVISIONAL_LOAD_COMMITTED
18 // and NOTIFY_FAIL_PROVISIONAL_LOAD_WITH_ERROR notifications
19 // (see notification_types.h).
20
21 // TODO(brettw) this mostly duplicates
22 // NavigationController::LoadCommittedDetails, it would be nice to unify these
23 // somehow.
24 class ProvisionalLoadDetails {
25 public:
26 ProvisionalLoadDetails(bool main_frame,
27 bool in_page_navigation,
28 const GURL& url,
29 const std::string& security_info,
30 bool is_filtered,
31 bool is_error_page,
32 int64 frame_id);
33 virtual ~ProvisionalLoadDetails() { }
34
35 void set_error_code(int error_code) { error_code_ = error_code; }
36 int error_code() const { return error_code_; }
37
38 void set_transition_type(PageTransition::Type transition_type) {
39 transition_type_ = transition_type;
40 }
41 PageTransition::Type transition_type() const {
42 return transition_type_;
43 }
44
45 const GURL& url() const { return url_; }
46
47 bool main_frame() const { return is_main_frame_; }
48
49 bool in_page_navigation() const { return is_in_page_navigation_; }
50
51 int ssl_cert_id() const { return ssl_cert_id_; }
52
53 int ssl_cert_status() const { return ssl_cert_status_; }
54
55 int ssl_security_bits() const { return ssl_security_bits_; }
56
57 int ssl_connection_status() const { return ssl_connection_status_; }
58
59 bool is_content_filtered() const { return is_content_filtered_; }
60
61 bool is_error_page() const { return is_error_page_; }
62
63 int64 frame_id() const { return frame_id_; }
64
65 private:
66 int error_code_;
67 PageTransition::Type transition_type_;
68 GURL url_;
69 bool is_main_frame_;
70 bool is_in_page_navigation_;
71 int ssl_cert_id_;
72 int ssl_cert_status_;
73 int ssl_security_bits_;
74 int ssl_connection_status_;
75 bool is_content_filtered_;
76 bool is_error_page_;
77 int64 frame_id_;
78
79 DISALLOW_COPY_AND_ASSIGN(ProvisionalLoadDetails);
80 };
81 11
82 #endif // CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_ 12 #endif // CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/page_navigator.h ('k') | chrome/browser/tab_contents/provisional_load_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698