OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SEARCH_IFRAME_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_IFRAME_SOURCE_H_ |
6 #define CHROME_BROWSER_SEARCH_IFRAME_SOURCE_H_ | 6 #define CHROME_BROWSER_SEARCH_IFRAME_SOURCE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
10 #include "content/public/browser/url_data_source.h" | 10 #include "content/public/browser/url_data_source.h" |
11 | 11 |
12 // Base class for URL data sources for chrome-search:// iframed content. | 12 // Base class for URL data sources for chrome-search:// iframed content. |
13 class IframeSource : public content::URLDataSource { | 13 class IframeSource : public content::URLDataSource { |
14 public: | 14 public: |
15 IframeSource(); | 15 IframeSource(); |
16 ~IframeSource() override; | 16 ~IframeSource() override; |
17 | 17 |
18 protected: | 18 protected: |
19 // Overridden from content::URLDataSource: | 19 // Overridden from content::URLDataSource: |
(...skipping 22 matching lines...) Expand all Loading... |
42 // if the render frame does not exist. | 42 // if the render frame does not exist. |
43 virtual bool GetOrigin( | 43 virtual bool GetOrigin( |
44 int process_id, | 44 int process_id, |
45 int render_frame_id, | 45 int render_frame_id, |
46 std::string* origin) const; | 46 std::string* origin) const; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(IframeSource); | 48 DISALLOW_COPY_AND_ASSIGN(IframeSource); |
49 }; | 49 }; |
50 | 50 |
51 #endif // CHROME_BROWSER_SEARCH_IFRAME_SOURCE_H_ | 51 #endif // CHROME_BROWSER_SEARCH_IFRAME_SOURCE_H_ |
OLD | NEW |