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

Side by Side Diff: chrome/browser/ui/webui/ntp/new_tab_ui.h

Issue 14039004: Add int params to URLDataSource::StartDataRequest(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changing struct -> ints. Created 7 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_WEBUI_NTP_NEW_TAB_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 class NewTabHTMLSource : public content::URLDataSource { 64 class NewTabHTMLSource : public content::URLDataSource {
65 public: 65 public:
66 explicit NewTabHTMLSource(Profile* profile); 66 explicit NewTabHTMLSource(Profile* profile);
67 virtual ~NewTabHTMLSource(); 67 virtual ~NewTabHTMLSource();
68 68
69 // content::URLDataSource implementation. 69 // content::URLDataSource implementation.
70 virtual std::string GetSource() OVERRIDE; 70 virtual std::string GetSource() OVERRIDE;
71 virtual void StartDataRequest( 71 virtual void StartDataRequest(
72 const std::string& path, 72 const std::string& path,
73 bool is_incognito, 73 int render_process_id,
74 int render_view_id,
74 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; 75 const content::URLDataSource::GotDataCallback& callback) OVERRIDE;
75 virtual std::string GetMimeType(const std::string&) const OVERRIDE; 76 virtual std::string GetMimeType(const std::string&) const OVERRIDE;
76 virtual bool ShouldReplaceExistingSource() const OVERRIDE; 77 virtual bool ShouldReplaceExistingSource() const OVERRIDE;
77 virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE; 78 virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE;
78 79
79 // Adds |resource| to the source. |resource_id| is resource id or 0, 80 // Adds |resource| to the source. |resource_id| is resource id or 0,
80 // which means return empty data set. |mime_type| is mime type of the 81 // which means return empty data set. |mime_type| is mime type of the
81 // resource. 82 // resource.
82 void AddResource(const char* resource, 83 void AddResource(const char* resource,
83 const char* mime_type, 84 const char* mime_type,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 // If the sync promo NTP bubble is being shown. 123 // If the sync promo NTP bubble is being shown.
123 bool showing_sync_bubble_; 124 bool showing_sync_bubble_;
124 125
125 PrefChangeRegistrar pref_change_registrar_; 126 PrefChangeRegistrar pref_change_registrar_;
126 127
127 DISALLOW_COPY_AND_ASSIGN(NewTabUI); 128 DISALLOW_COPY_AND_ASSIGN(NewTabUI);
128 }; 129 };
129 130
130 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 131 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698