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

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

Issue 363563004: Move extensions-only render IPC messages into the extension messages header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
11 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
12 #include "content/public/renderer/document_state.h" 12 #include "content/public/renderer/document_state.h"
13 #include "content/public/renderer/navigation_state.h" 13 #include "content/public/renderer/navigation_state.h"
14 #include "content/public/renderer/render_frame.h" 14 #include "content/public/renderer/render_frame.h"
15 #include "content/public/renderer/render_view.h" 15 #include "content/public/renderer/render_view.h"
16 #include "extensions/common/constants.h" 16 #include "extensions/common/constants.h"
17 #include "extensions/common/extension.h" 17 #include "extensions/common/extension.h"
18 #include "extensions/common/permissions/permissions_data.h" 18 #include "extensions/common/permissions/permissions_data.h"
19 #include "extensions/renderer/dispatcher.h" 19 #include "extensions/renderer/dispatcher.h"
20 #include "third_party/WebKit/public/platform/WebPermissionCallbacks.h" 20 #include "third_party/WebKit/public/platform/WebPermissionCallbacks.h"
21 #include "third_party/WebKit/public/platform/WebURL.h" 21 #include "third_party/WebKit/public/platform/WebURL.h"
22 #include "third_party/WebKit/public/web/WebDataSource.h" 22 #include "third_party/WebKit/public/web/WebDataSource.h"
23 #include "third_party/WebKit/public/web/WebDocument.h" 23 #include "third_party/WebKit/public/web/WebDocument.h"
24 #include "third_party/WebKit/public/web/WebFrame.h" 24 #include "third_party/WebKit/public/web/WebFrame.h"
25 #include "third_party/WebKit/public/web/WebFrameClient.h" 25 #include "third_party/WebKit/public/web/WebFrameClient.h"
26 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" 26 #include "third_party/WebKit/public/web/WebSecurityOrigin.h"
27 #include "third_party/WebKit/public/web/WebView.h" 27 #include "third_party/WebKit/public/web/WebView.h"
28 #include "webkit/child/weburlresponse_extradata_impl.h" 28 #include "webkit/child/weburlresponse_extradata_impl.h"
29 29
30 #if defined(ENABLE_EXTENSIONS)
31 #include "chrome/common/extensions/chrome_extension_messages.h"
32 #endif
33
30 using blink::WebDataSource; 34 using blink::WebDataSource;
31 using blink::WebDocument; 35 using blink::WebDocument;
32 using blink::WebFrame; 36 using blink::WebFrame;
33 using blink::WebPermissionCallbacks; 37 using blink::WebPermissionCallbacks;
34 using blink::WebSecurityOrigin; 38 using blink::WebSecurityOrigin;
35 using blink::WebString; 39 using blink::WebString;
36 using blink::WebURL; 40 using blink::WebURL;
37 using blink::WebView; 41 using blink::WebView;
38 using content::DocumentState; 42 using content::DocumentState;
39 using content::NavigationState; 43 using content::NavigationState;
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 708
705 // If the scheme is file:, an empty file name indicates a directory listing, 709 // If the scheme is file:, an empty file name indicates a directory listing,
706 // which requires JavaScript to function properly. 710 // which requires JavaScript to function properly.
707 if (EqualsASCII(origin.protocol(), url::kFileScheme)) { 711 if (EqualsASCII(origin.protocol(), url::kFileScheme)) {
708 return document_url.SchemeIs(url::kFileScheme) && 712 return document_url.SchemeIs(url::kFileScheme) &&
709 document_url.ExtractFileName().empty(); 713 document_url.ExtractFileName().empty();
710 } 714 }
711 715
712 return false; 716 return false;
713 } 717 }
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_render_view_observer.cc ('k') | chrome/renderer/extensions/chrome_extensions_render_frame_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698