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

Side by Side Diff: chrome/browser/page_info_model.h

Issue 3461016: [Mac] Convert the page info window to a bubble. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Address nits Created 10 years, 2 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
« no previous file with comments | « chrome/browser/labs.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PAGE_INFO_MODEL_H_ 5 #ifndef CHROME_BROWSER_PAGE_INFO_MODEL_H_
6 #define CHROME_BROWSER_PAGE_INFO_MODEL_H_ 6 #define CHROME_BROWSER_PAGE_INFO_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "chrome/browser/cancelable_request.h" 12 #include "chrome/browser/cancelable_request.h"
13 #include "chrome/browser/history/history.h" 13 #include "chrome/browser/history/history.h"
14 #include "chrome/browser/tab_contents/navigation_entry.h" 14 #include "chrome/browser/tab_contents/navigation_entry.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 16
17 class PrefService; 17 class PrefService;
18 class Profile; 18 class Profile;
19 19
20 // The model that provides the information that should be displayed in the page 20 // The model that provides the information that should be displayed in the page
21 // info dialog/bubble. 21 // info dialog/bubble.
22 class PageInfoModel { 22 class PageInfoModel {
23 public: 23 public:
24 class PageInfoModelObserver { 24 class PageInfoModelObserver {
25 public: 25 public:
26 virtual ~PageInfoModelObserver() {}
27
26 virtual void ModelChanged() = 0; 28 virtual void ModelChanged() = 0;
27
28 protected:
29 virtual ~PageInfoModelObserver() {}
30 }; 29 };
31 30
32 enum SectionInfoType { 31 enum SectionInfoType {
33 SECTION_INFO_IDENTITY = 0, 32 SECTION_INFO_IDENTITY = 0,
34 SECTION_INFO_CONNECTION, 33 SECTION_INFO_CONNECTION,
35 SECTION_INFO_FIRST_VISIT, 34 SECTION_INFO_FIRST_VISIT,
36 }; 35 };
37 36
38 enum SectionInfoState { 37 enum SectionInfoState {
39 SECTION_STATE_OK = 0, 38 SECTION_STATE_OK = 0,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 std::vector<SectionInfo> sections_; 101 std::vector<SectionInfo> sections_;
103 102
104 // Used to request number of visits. 103 // Used to request number of visits.
105 CancelableRequestConsumer request_consumer_; 104 CancelableRequestConsumer request_consumer_;
106 105
107 private: 106 private:
108 DISALLOW_COPY_AND_ASSIGN(PageInfoModel); 107 DISALLOW_COPY_AND_ASSIGN(PageInfoModel);
109 }; 108 };
110 109
111 #endif // CHROME_BROWSER_PAGE_INFO_MODEL_H_ 110 #endif // CHROME_BROWSER_PAGE_INFO_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/labs.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698