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

Side by Side Diff: chrome/renderer/renderer_webkitclient_impl.h

Issue 340036: Initial pass of shared workers renderer-side code (Closed)
Patch Set: Changes reflecting review feedback Created 11 years, 1 month 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
OLDNEW
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 "webkit/glue/simple_webmimeregistry_impl.h" 10 #include "webkit/glue/simple_webmimeregistry_impl.h"
10 #include "webkit/glue/webclipboard_impl.h" 11 #include "webkit/glue/webclipboard_impl.h"
11 #include "webkit/glue/webkitclient_impl.h" 12 #include "webkit/glue/webkitclient_impl.h"
12 13
13 #if defined(OS_WIN) 14 #if defined(OS_WIN)
14 #include "webkit/api/public/win/WebSandboxSupport.h" 15 #include "webkit/api/public/win/WebSandboxSupport.h"
15 #elif defined(OS_LINUX) 16 #elif defined(OS_LINUX)
16 #include <string> 17 #include <string>
17 #include <map> 18 #include <map>
18 #include "base/lock.h" 19 #include "base/lock.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool sync_dir); 58 bool sync_dir);
58 virtual long databaseGetFileAttributes(const WebKit::WebString& file_name); 59 virtual long databaseGetFileAttributes(const WebKit::WebString& file_name);
59 virtual long long databaseGetFileSize(const WebKit::WebString& file_name); 60 virtual long long databaseGetFileSize(const WebKit::WebString& file_name);
60 virtual WebKit::WebString signedPublicKeyAndChallengeString( 61 virtual WebKit::WebString signedPublicKeyAndChallengeString(
61 unsigned key_size_index, 62 unsigned key_size_index,
62 const WebKit::WebString& challenge, 63 const WebKit::WebString& challenge,
63 const WebKit::WebURL& url); 64 const WebKit::WebURL& url);
64 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( 65 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost(
65 WebKit::WebApplicationCacheHostClient*); 66 WebKit::WebApplicationCacheHostClient*);
66 67
68 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository();
69
67 private: 70 private:
68 class MimeRegistry : public webkit_glue::SimpleWebMimeRegistryImpl { 71 class MimeRegistry : public webkit_glue::SimpleWebMimeRegistryImpl {
69 public: 72 public:
70 virtual WebKit::WebString mimeTypeForExtension(const WebKit::WebString&); 73 virtual WebKit::WebString mimeTypeForExtension(const WebKit::WebString&);
71 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); 74 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&);
72 virtual WebKit::WebString preferredExtensionForMIMEType( 75 virtual WebKit::WebString preferredExtensionForMIMEType(
73 const WebKit::WebString&); 76 const WebKit::WebString&);
74 }; 77 };
75 78
76 #if defined(OS_WIN) 79 #if defined(OS_WIN)
(...skipping 22 matching lines...) Expand all
99 MimeRegistry mime_registry_; 102 MimeRegistry mime_registry_;
100 #if defined(OS_WIN) || defined(OS_LINUX) 103 #if defined(OS_WIN) || defined(OS_LINUX)
101 SandboxSupport sandbox_support_; 104 SandboxSupport sandbox_support_;
102 #endif 105 #endif
103 106
104 // This counter keeps track of the number of times sudden termination is 107 // This counter keeps track of the number of times sudden termination is
105 // enabled or disabled. It starts at 0 (enabled) and for every disable 108 // enabled or disabled. It starts at 0 (enabled) and for every disable
106 // increments by 1, for every enable decrements by 1. When it reaches 0, 109 // increments by 1, for every enable decrements by 1. When it reaches 0,
107 // we tell the browser to enable fast termination. 110 // we tell the browser to enable fast termination.
108 int sudden_termination_disables_; 111 int sudden_termination_disables_;
112
113 // Implementation of the WebSharedWorkerRepository APIs (provides an interface
114 // to WorkerService on the browser thread.
115 WebSharedWorkerRepositoryImpl shared_worker_repository_;
116
109 }; 117 };
110 118
111 #endif // CHROME_RENDERER_WEBKIT_CLIENT_IMPL_H_ 119 #endif // CHROME_RENDERER_WEBKIT_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698