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

Side by Side Diff: third_party/WebKit/Source/core/loader/EmptyClients.cpp

Issue 1447563002: Implement frame attribution (FrameBlamer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 9 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
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, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void hide() override { } 66 void hide() override { }
67 void updateFromElement() override { } 67 void updateFromElement() override { }
68 void disconnectClient() override { } 68 void disconnectClient() override { }
69 }; 69 };
70 70
71 class EmptyFrameScheduler : public WebFrameScheduler { 71 class EmptyFrameScheduler : public WebFrameScheduler {
72 public: 72 public:
73 void setFrameVisible(bool) override { } 73 void setFrameVisible(bool) override { }
74 WebTaskRunner* loadingTaskRunner() override; 74 WebTaskRunner* loadingTaskRunner() override;
75 WebTaskRunner* timerTaskRunner() override; 75 WebTaskRunner* timerTaskRunner() override;
76 void setFrameOrigin(const WebSecurityOrigin&) override { }
77 }; 76 };
78 77
79 WebTaskRunner* EmptyFrameScheduler::loadingTaskRunner() 78 WebTaskRunner* EmptyFrameScheduler::loadingTaskRunner()
80 { 79 {
81 return Platform::current()->currentThread()->getWebTaskRunner(); 80 return Platform::current()->currentThread()->getWebTaskRunner();
82 } 81 }
83 82
84 WebTaskRunner* EmptyFrameScheduler::timerTaskRunner() 83 WebTaskRunner* EmptyFrameScheduler::timerTaskRunner()
85 { 84 {
86 return Platform::current()->currentThread()->getWebTaskRunner(); 85 return Platform::current()->currentThread()->getWebTaskRunner();
(...skipping 20 matching lines...) Expand all
107 106
108 void EmptyChromeClient::openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) 107 void EmptyChromeClient::openFileChooser(LocalFrame*, PassRefPtr<FileChooser>)
109 { 108 {
110 } 109 }
111 110
112 String EmptyChromeClient::acceptLanguages() 111 String EmptyChromeClient::acceptLanguages()
113 { 112 {
114 return String(); 113 return String();
115 } 114 }
116 115
117 PassOwnPtr<WebFrameScheduler> EmptyChromeClient::createFrameScheduler() 116 PassOwnPtr<WebFrameScheduler> EmptyChromeClient::createFrameScheduler(BlameConte xt*)
118 { 117 {
119 return adoptPtr(new EmptyFrameScheduler()); 118 return adoptPtr(new EmptyFrameScheduler());
120 } 119 }
121 120
122 NavigationPolicy EmptyFrameLoaderClient::decidePolicyForNavigation(const Resourc eRequest&, DocumentLoader*, NavigationType, NavigationPolicy, bool, bool) 121 NavigationPolicy EmptyFrameLoaderClient::decidePolicyForNavigation(const Resourc eRequest&, DocumentLoader*, NavigationType, NavigationPolicy, bool, bool)
123 { 122 {
124 return NavigationPolicyIgnore; 123 return NavigationPolicyIgnore;
125 } 124 }
126 125
127 bool EmptyFrameLoaderClient::hasPendingNavigation() 126 bool EmptyFrameLoaderClient::hasPendingNavigation()
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 { 178 {
180 return nullptr; 179 return nullptr;
181 } 180 }
182 181
183 PassOwnPtr<WebApplicationCacheHost> EmptyFrameLoaderClient::createApplicationCac heHost(WebApplicationCacheHostClient*) 182 PassOwnPtr<WebApplicationCacheHost> EmptyFrameLoaderClient::createApplicationCac heHost(WebApplicationCacheHostClient*)
184 { 183 {
185 return nullptr; 184 return nullptr;
186 } 185 }
187 186
188 } // namespace blink 187 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698