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

Side by Side Diff: Source/core/loader/EmptyClients.h

Issue 546263002: [ServiceWorker] Introduce isControlledByServiceWorker() in FrameLoaderClient and WebFrameClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated tkent's comment Created 6 years, 3 months 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
« no previous file with comments | « no previous file | Source/core/loader/FrameLoaderClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org)
3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGr oup, int worldId) OVERRIDE { } 238 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGr oup, int worldId) OVERRIDE { }
239 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId) OVERRIDE { } 239 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId) OVERRIDE { }
240 virtual bool allowScriptExtension(const String& extensionName, int extension Group, int worldId) OVERRIDE { return false; } 240 virtual bool allowScriptExtension(const String& extensionName, int extension Group, int worldId) OVERRIDE { return false; }
241 241
242 virtual blink::WebCookieJar* cookieJar() const OVERRIDE { return 0; } 242 virtual blink::WebCookieJar* cookieJar() const OVERRIDE { return 0; }
243 243
244 virtual void didRequestAutocomplete(HTMLFormElement*) OVERRIDE; 244 virtual void didRequestAutocomplete(HTMLFormElement*) OVERRIDE;
245 245
246 virtual PassOwnPtr<blink::WebServiceWorkerProvider> createServiceWorkerProvi der() OVERRIDE; 246 virtual PassOwnPtr<blink::WebServiceWorkerProvider> createServiceWorkerProvi der() OVERRIDE;
247 virtual bool isControlledByServiceWorker() OVERRIDE { return false; }
247 virtual PassOwnPtr<blink::WebApplicationCacheHost> createApplicationCacheHos t(blink::WebApplicationCacheHostClient*) OVERRIDE; 248 virtual PassOwnPtr<blink::WebApplicationCacheHost> createApplicationCacheHos t(blink::WebApplicationCacheHostClient*) OVERRIDE;
248 }; 249 };
249 250
250 class EmptyTextCheckerClient : public TextCheckerClient { 251 class EmptyTextCheckerClient : public TextCheckerClient {
251 public: 252 public:
252 ~EmptyTextCheckerClient() { } 253 ~EmptyTextCheckerClient() { }
253 254
254 virtual bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const OVERRIDE { return true; } 255 virtual bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const OVERRIDE { return true; }
255 virtual void checkSpellingOfString(const String&, int*, int*) OVERRIDE { } 256 virtual void checkSpellingOfString(const String&, int*, int*) OVERRIDE { }
256 virtual String getAutoCorrectSuggestionForMisspelledWord(const String&) OVER RIDE { return String(); } 257 virtual String getAutoCorrectSuggestionForMisspelledWord(const String&) OVER RIDE { return String(); }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 public: 333 public:
333 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() OVERRID E; 334 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() OVERRID E;
334 virtual bool canAccessStorage(LocalFrame*, StorageType) const OVERRIDE { ret urn false; } 335 virtual bool canAccessStorage(LocalFrame*, StorageType) const OVERRIDE { ret urn false; }
335 }; 336 };
336 337
337 void fillWithEmptyClients(Page::PageClients&); 338 void fillWithEmptyClients(Page::PageClients&);
338 339
339 } 340 }
340 341
341 #endif // EmptyClients_h 342 #endif // EmptyClients_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/loader/FrameLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698