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

Side by Side Diff: content/browser/webui/web_ui_data_source_impl.h

Issue 13945023: Make URLDataSource::GetSource() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: And another one. 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 CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_
6 #define CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ 6 #define CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 private: 63 private:
64 class InternalDataSource; 64 class InternalDataSource;
65 friend class InternalDataSource; 65 friend class InternalDataSource;
66 friend class WebUIDataSource; 66 friend class WebUIDataSource;
67 friend class WebUIDataSourceTest; 67 friend class WebUIDataSourceTest;
68 68
69 explicit WebUIDataSourceImpl(const std::string& source_name); 69 explicit WebUIDataSourceImpl(const std::string& source_name);
70 70
71 // Methods that match URLDataSource which are called by 71 // Methods that match URLDataSource which are called by
72 // InternalDataSource. 72 // InternalDataSource.
73 std::string GetSource(); 73 std::string GetSource() const;
74 std::string GetMimeType(const std::string& path) const; 74 std::string GetMimeType(const std::string& path) const;
75 void StartDataRequest( 75 void StartDataRequest(
76 const std::string& path, 76 const std::string& path,
77 bool is_incognito, 77 bool is_incognito,
78 const URLDataSource::GotDataCallback& callback); 78 const URLDataSource::GotDataCallback& callback);
79 79
80 void disable_set_font_strings_for_testing() { 80 void disable_set_font_strings_for_testing() {
81 disable_set_font_strings_ = true; 81 disable_set_font_strings_ = true;
82 } 82 }
83 83
(...skipping 14 matching lines...) Expand all
98 std::string frame_src_; 98 std::string frame_src_;
99 bool deny_xframe_options_; 99 bool deny_xframe_options_;
100 bool disable_set_font_strings_; 100 bool disable_set_font_strings_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl); 102 DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl);
103 }; 103 };
104 104
105 } // content 105 } // content
106 106
107 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ 107 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/webui/shared_resources_data_source.cc ('k') | content/browser/webui/web_ui_data_source_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698