OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PUBLIC_BROWSER_WEB_UI_MESSAGE_HANDLER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_UI_MESSAGE_HANDLER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_MESSAGE_HANDLER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_MESSAGE_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // Returns the attached WebUI for this handler. | 56 // Returns the attached WebUI for this handler. |
57 WebUI* web_ui() const { return web_ui_; } | 57 WebUI* web_ui() const { return web_ui_; } |
58 | 58 |
59 private: | 59 private: |
60 friend class ::WebUI; | 60 friend class ::WebUI; |
61 friend class ::WebUIBrowserTest; | 61 friend class ::WebUIBrowserTest; |
62 | 62 |
63 void set_web_ui(WebUI* web_ui) { web_ui_ = web_ui; } | 63 void set_web_ui(WebUI* web_ui) { web_ui_ = web_ui; } |
64 | 64 |
65 WebUI* web_ui_; | 65 WebUI* web_ui_; |
66 | |
67 DISALLOW_COPY_AND_ASSIGN(WebUIMessageHandler); | |
68 }; | 66 }; |
69 | 67 |
70 } // namespace content | 68 } // namespace content |
71 | 69 |
72 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_MESSAGE_HANDLER_H_ | 70 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_MESSAGE_HANDLER_H_ |
73 | 71 |
OLD | NEW |