| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_RENDERER_RENDERER_WEBKIT_CLIENT_IMPL_H_ | 5 #ifndef CHROME_RENDERER_RENDERER_WEBKIT_CLIENT_IMPL_H_ |
| 6 #define CHROME_RENDERER_RENDERER_WEBKIT_CLIENT_IMPL_H_ | 6 #define CHROME_RENDERER_RENDERER_WEBKIT_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
| 9 #include "chrome/renderer/websharedworkerrepository_impl.h" | 9 #include "chrome/renderer/websharedworkerrepository_impl.h" |
| 10 #include "webkit/glue/simple_webmimeregistry_impl.h" | 10 #include "webkit/glue/simple_webmimeregistry_impl.h" |
| 11 #include "webkit/glue/webclipboard_impl.h" | 11 #include "webkit/glue/webclipboard_impl.h" |
| 12 #include "webkit/glue/webkitclient_impl.h" | 12 #include "webkit/glue/webkitclient_impl.h" |
| 13 | 13 |
| 14 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
| 15 #include "webkit/api/public/win/WebSandboxSupport.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/win/WebSandboxSupport.h" |
| 16 #elif defined(OS_LINUX) | 16 #elif defined(OS_LINUX) |
| 17 #include <string> | 17 #include <string> |
| 18 #include <map> | 18 #include <map> |
| 19 #include "base/lock.h" | 19 #include "base/lock.h" |
| 20 #include "webkit/api/public/linux/WebSandboxSupport.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/linux/WebSandboxSupport.h" |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 class RendererWebKitClientImpl : public webkit_glue::WebKitClientImpl { | 23 class RendererWebKitClientImpl : public webkit_glue::WebKitClientImpl { |
| 24 public: | 24 public: |
| 25 RendererWebKitClientImpl() : sudden_termination_disables_(0) {} | 25 RendererWebKitClientImpl() : sudden_termination_disables_(0) {} |
| 26 | 26 |
| 27 // WebKitClient methods: | 27 // WebKitClient methods: |
| 28 virtual WebKit::WebClipboard* clipboard(); | 28 virtual WebKit::WebClipboard* clipboard(); |
| 29 virtual WebKit::WebMimeRegistry* mimeRegistry(); | 29 virtual WebKit::WebMimeRegistry* mimeRegistry(); |
| 30 virtual WebKit::WebSandboxSupport* sandboxSupport(); | 30 virtual WebKit::WebSandboxSupport* sandboxSupport(); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // we tell the browser to enable fast termination. | 114 // we tell the browser to enable fast termination. |
| 115 int sudden_termination_disables_; | 115 int sudden_termination_disables_; |
| 116 | 116 |
| 117 // Implementation of the WebSharedWorkerRepository APIs (provides an interface | 117 // Implementation of the WebSharedWorkerRepository APIs (provides an interface |
| 118 // to WorkerService on the browser thread. | 118 // to WorkerService on the browser thread. |
| 119 WebSharedWorkerRepositoryImpl shared_worker_repository_; | 119 WebSharedWorkerRepositoryImpl shared_worker_repository_; |
| 120 | 120 |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 #endif // CHROME_RENDERER_WEBKIT_CLIENT_IMPL_H_ | 123 #endif // CHROME_RENDERER_WEBKIT_CLIENT_IMPL_H_ |
| OLD | NEW |