OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/history/history.h" | 12 #include "chrome/browser/history/history.h" |
13 #include "content/browser/cancelable_request.h" | 13 #include "content/browser/cancelable_request.h" |
14 #include "content/browser/tab_contents/navigation_entry.h" | 14 #include "content/browser/tab_contents/navigation_entry.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "ui/gfx/image/image.h" | 16 #include "ui/gfx/image/image.h" |
17 | 17 |
18 class PageInfoModelObserver; | 18 class PageInfoModelObserver; |
19 class PrefService; | |
20 class Profile; | 19 class Profile; |
21 | 20 |
22 // The model that provides the information that should be displayed in the page | 21 // The model that provides the information that should be displayed in the page |
23 // info dialog/bubble. | 22 // info dialog/bubble. |
24 class PageInfoModel { | 23 class PageInfoModel { |
25 public: | 24 public: |
26 enum SectionInfoType { | 25 enum SectionInfoType { |
27 SECTION_INFO_IDENTITY = 0, | 26 SECTION_INFO_IDENTITY = 0, |
28 SECTION_INFO_CONNECTION, | 27 SECTION_INFO_CONNECTION, |
29 SECTION_INFO_FIRST_VISIT, | 28 SECTION_INFO_FIRST_VISIT, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 std::vector<gfx::Image*> icons_; | 107 std::vector<gfx::Image*> icons_; |
109 | 108 |
110 // Used to request number of visits. | 109 // Used to request number of visits. |
111 CancelableRequestConsumer request_consumer_; | 110 CancelableRequestConsumer request_consumer_; |
112 | 111 |
113 private: | 112 private: |
114 DISALLOW_COPY_AND_ASSIGN(PageInfoModel); | 113 DISALLOW_COPY_AND_ASSIGN(PageInfoModel); |
115 }; | 114 }; |
116 | 115 |
117 #endif // CHROME_BROWSER_PAGE_INFO_MODEL_H_ | 116 #endif // CHROME_BROWSER_PAGE_INFO_MODEL_H_ |
OLD | NEW |