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

Side by Side Diff: chrome/browser/dom_ui/history_ui.h

Issue 28308: Make history title inclusion safer (createTextNode changes).... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
« no previous file with comments | « chrome/browser/browsing_data_remover.cc ('k') | chrome/browser/dom_ui/history_ui.cc » ('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) 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_DOM_UI_HISTORY_UI_H__ 5 #ifndef CHROME_BROWSER_DOM_UI_HISTORY_UI_H__
6 #define CHROME_BROWSER_DOM_UI_HISTORY_UI_H__ 6 #define CHROME_BROWSER_DOM_UI_HISTORY_UI_H__
7 7
8 #include "base/scoped_ptr.h"
8 #include "chrome/browser/browsing_data_remover.h" 9 #include "chrome/browser/browsing_data_remover.h"
9 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 10 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
10 #include "chrome/browser/dom_ui/dom_ui.h" 11 #include "chrome/browser/dom_ui/dom_ui.h"
11 #include "chrome/browser/dom_ui/dom_ui_contents.h" 12 #include "chrome/browser/dom_ui/dom_ui_contents.h"
12 #include "chrome/browser/cancelable_request.h" 13 #include "chrome/browser/cancelable_request.h"
13 14
14 class GURL; 15 class GURL;
15 16
16 class HistoryUIHTMLSource : public ChromeURLDataManager::DataSource { 17 class HistoryUIHTMLSource : public ChromeURLDataManager::DataSource {
17 public: 18 public:
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 int* month, 64 int* month,
64 std::wstring* query); 65 std::wstring* query);
65 66
66 // Figure out the query options for a month-wide query. 67 // Figure out the query options for a month-wide query.
67 history::QueryOptions CreateMonthQueryOptions(int month); 68 history::QueryOptions CreateMonthQueryOptions(int month);
68 69
69 // Current search text. 70 // Current search text.
70 std::wstring search_text_; 71 std::wstring search_text_;
71 72
72 // Browsing history remover 73 // Browsing history remover
73 BrowsingDataRemover* remover_; 74 scoped_ptr<BrowsingDataRemover> remover_;
74 75
75 // Our consumer for the history service. 76 // Our consumer for the history service.
76 CancelableRequestConsumerTSimple<PageUsageData*> cancelable_consumer_; 77 CancelableRequestConsumerTSimple<PageUsageData*> cancelable_consumer_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler); 79 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler);
79 }; 80 };
80 81
81 class HistoryUI : public DOMUI { 82 class HistoryUI : public DOMUI {
82 public: 83 public:
83 explicit HistoryUI(DOMUIContents* contents); 84 explicit HistoryUI(DOMUIContents* contents);
84 85
85 // Return the URL for the front page of this UI. 86 // Return the URL for the front page of this UI.
86 static GURL GetBaseURL(); 87 static GURL GetBaseURL();
87 88
88 // Return the URL for a given search term. 89 // Return the URL for a given search term.
89 static const GURL GetHistoryURLWithSearchText(const std::wstring& text); 90 static const GURL GetHistoryURLWithSearchText(const std::wstring& text);
90 91
91 // DOMUI Implementation 92 // DOMUI Implementation
92 virtual void Init(); 93 virtual void Init();
93 94
94 private: 95 private:
95 DOMUIContents* contents_; 96 DOMUIContents* contents_;
96 97
97 DISALLOW_COPY_AND_ASSIGN(HistoryUI); 98 DISALLOW_COPY_AND_ASSIGN(HistoryUI);
98 }; 99 };
99 100
100 #endif // CHROME_BROWSER_DOM_UI_HISTORY_UI_H__ 101 #endif // CHROME_BROWSER_DOM_UI_HISTORY_UI_H__
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_remover.cc ('k') | chrome/browser/dom_ui/history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698