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

Side by Side Diff: chrome/renderer/content_settings_observer.cc

Issue 8784004: Update includes to new header locations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/renderer/content_settings_observer.h" 5 #include "chrome/renderer/content_settings_observer.h"
6 6
7 #include "chrome/common/render_messages.h" 7 #include "chrome/common/render_messages.h"
8 #include "chrome/common/url_constants.h" 8 #include "chrome/common/url_constants.h"
9 #include "content/public/renderer/document_state.h" 9 #include "content/public/renderer/document_state.h"
10 #include "content/public/renderer/navigation_state.h" 10 #include "content/public/renderer/navigation_state.h"
11 #include "content/public/renderer/render_view.h" 11 #include "content/public/renderer/render_view.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
19 19
20 using WebKit::WebDataSource; 20 using WebKit::WebDataSource;
21 using WebKit::WebFrame; 21 using WebKit::WebFrame;
22 using WebKit::WebFrameClient; 22 using WebKit::WebFrameClient;
23 using WebKit::WebSecurityOrigin; 23 using WebKit::WebSecurityOrigin;
24 using WebKit::WebString; 24 using WebKit::WebString;
25 using WebKit::WebURL; 25 using WebKit::WebURL;
26 using WebKit::WebView; 26 using WebKit::WebView;
27 using content::DocumentState; 27 using content::DocumentState;
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 const char* kDirProtocols[] = { chrome::kFtpScheme, chrome::kFileScheme }; 311 const char* kDirProtocols[] = { chrome::kFtpScheme, chrome::kFileScheme };
312 for (size_t i = 0; i < arraysize(kDirProtocols); ++i) { 312 for (size_t i = 0; i < arraysize(kDirProtocols); ++i) {
313 if (EqualsASCII(origin.protocol(), kDirProtocols[i])) { 313 if (EqualsASCII(origin.protocol(), kDirProtocols[i])) {
314 return document_url.SchemeIs(kDirProtocols[i]) && 314 return document_url.SchemeIs(kDirProtocols[i]) &&
315 document_url.ExtractFileName().empty(); 315 document_url.ExtractFileName().empty();
316 } 316 }
317 } 317 }
318 318
319 return false; 319 return false;
320 } 320 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698