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

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

Issue 179028: Revert "Fix a ton of compiler warnings." (Closed)
Patch Set: Created 11 years, 3 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/net/url_fetcher.h ('k') | chrome/browser/parsers/metadata_parser.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "chrome/browser/cancelable_request.h" 11 #include "chrome/browser/cancelable_request.h"
12 #include "chrome/browser/history/history.h" 12 #include "chrome/browser/history/history.h"
13 #include "chrome/browser/tab_contents/navigation_entry.h" 13 #include "chrome/browser/tab_contents/navigation_entry.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 15
16 class PrefService; 16 class PrefService;
17 class Profile; 17 class Profile;
18 18
19 // The model that provides the information that should be displayed in the page 19 // The model that provides the information that should be displayed in the page
20 // info dialog. 20 // info dialog.
21 class PageInfoModel { 21 class PageInfoModel {
22 public: 22 public:
23 class PageInfoModelObserver { 23 class PageInfoModelObserver {
24 public: 24 public:
25 virtual void ModelChanged() = 0; 25 virtual void ModelChanged() = 0;
26 protected:
27 ~PageInfoModelObserver() {}
28 }; 26 };
29 27
30 // Because the UI on the Mac is statically laid-out, this enum provides the 28 // Because the UI on the Mac is statically laid-out, this enum provides the
31 // section type for the associated index. It is only used on Mac. 29 // section type for the associated index. It is only used on Mac.
32 // Ideally the view wouldn't have to know anything regarding the semantics of 30 // Ideally the view wouldn't have to know anything regarding the semantics of
33 // the model and would only use GetSectionCount()/GetSectionInfo(). 31 // the model and would only use GetSectionCount()/GetSectionInfo().
34 enum SectionType { 32 enum SectionType {
35 IDENTITY = 0, 33 IDENTITY = 0,
36 CONNECTION, 34 CONNECTION,
37 HISTORY 35 HISTORY
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 81
84 std::vector<SectionInfo> sections_; 82 std::vector<SectionInfo> sections_;
85 83
86 // Used to request number of visits. 84 // Used to request number of visits.
87 CancelableRequestConsumer request_consumer_; 85 CancelableRequestConsumer request_consumer_;
88 86
89 DISALLOW_COPY_AND_ASSIGN(PageInfoModel); 87 DISALLOW_COPY_AND_ASSIGN(PageInfoModel);
90 }; 88 };
91 89
92 #endif // CHROME_BROWSER_PAGE_INFO_MODEL_H_ 90 #endif // CHROME_BROWSER_PAGE_INFO_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/url_fetcher.h ('k') | chrome/browser/parsers/metadata_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698