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 EXTENSIONS_BROWSER_API_CAPTURE_WEB_CONTENTS_FUNCTION_IMPL_H_ |
| 6 #define EXTENSIONS_BROWSER_API_CAPTURE_WEB_CONTENTS_FUNCTION_IMPL_H_ |
| 7 |
5 #include "extensions/browser/api/capture_web_contents_function.h" | 8 #include "extensions/browser/api/capture_web_contents_function.h" |
6 | 9 |
7 #include "base/base64.h" | 10 #include "base/base64.h" |
8 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
9 #include "content/public/browser/render_view_host.h" | 12 #include "content/public/browser/render_view_host.h" |
10 #include "content/public/browser/render_widget_host_view.h" | 13 #include "content/public/browser/render_widget_host_view.h" |
11 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
12 #include "extensions/browser/extension_function.h" | 15 #include "extensions/browser/extension_function.h" |
13 #include "extensions/common/constants.h" | 16 #include "extensions/common/constants.h" |
14 #include "ui/gfx/codec/jpeg_codec.h" | 17 #include "ui/gfx/codec/jpeg_codec.h" |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 } | 136 } |
134 | 137 |
135 template <typename T> | 138 template <typename T> |
136 bool CaptureWebContentsFunction<T>::ValidationFailure( | 139 bool CaptureWebContentsFunction<T>::ValidationFailure( |
137 CaptureWebContentsFunction<T>* function) { | 140 CaptureWebContentsFunction<T>* function) { |
138 return T::ValidationFailure(function); | 141 return T::ValidationFailure(function); |
139 } | 142 } |
140 | 143 |
141 } // namespace extensions | 144 } // namespace extensions |
142 | 145 |
| 146 #endif // EXTENSIONS_BROWSER_API_CAPTURE_WEB_CONTENTS_FUNCTION_IMPL_H_ |
OLD | NEW |