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

Side by Side Diff: content/child/site_isolation_policy.cc

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/child/site_isolation_policy.h" 5 #include "content/child/site_isolation_policy.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/strings/string_piece.h" 12 #include "base/strings/string_piece.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "content/child/child_thread.h" 14 #include "content/child/child_thread.h"
15 #include "content/public/common/content_switches.h" 15 #include "content/public/common/content_switches.h"
16 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 16 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
17 #include "net/http/http_response_headers.h" 17 #include "net/http/http_response_headers.h"
18 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" 18 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h"
19 #include "third_party/WebKit/public/platform/WebString.h" 19 #include "third_party/WebKit/public/platform/WebString.h"
20 #include "third_party/WebKit/public/platform/WebURL.h" 20 #include "third_party/WebKit/public/platform/WebURL.h"
21 #include "third_party/WebKit/public/platform/WebURLRequest.h" 21 #include "third_party/WebKit/public/platform/WebURLRequest.h"
22 #include "third_party/WebKit/public/platform/WebURLResponse.h" 22 #include "third_party/WebKit/public/platform/WebURLResponse.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 27
28 using base::StringPiece; 28 using base::StringPiece;
29 using WebKit::WebDocument; 29 using blink::WebDocument;
30 using WebKit::WebString; 30 using blink::WebString;
31 using WebKit::WebURL; 31 using blink::WebURL;
32 using WebKit::WebURLResponse; 32 using blink::WebURLResponse;
33 using WebKit::WebURLRequest; 33 using blink::WebURLRequest;
34 34
35 namespace content { 35 namespace content {
36 36
37 namespace { 37 namespace {
38 38
39 // Maintain the bookkeeping data between OnReceivedResponse and 39 // Maintain the bookkeeping data between OnReceivedResponse and
40 // OnReceivedData. The key is a request id maintained by ResourceDispatcher. 40 // OnReceivedData. The key is a request id maintained by ResourceDispatcher.
41 static base::LazyInstance<SiteIsolationPolicy::RequestIdToMetaDataMap> 41 static base::LazyInstance<SiteIsolationPolicy::RequestIdToMetaDataMap>
42 g_metadata_map = LAZY_INSTANCE_INITIALIZER; 42 g_metadata_map = LAZY_INSTANCE_INITIALIZER;
43 43
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 // TODO(dsjang): This is a real hack. The only purpose of this function is to 584 // TODO(dsjang): This is a real hack. The only purpose of this function is to
585 // try to see if there's any possibility that this data can be JavaScript 585 // try to see if there's any possibility that this data can be JavaScript
586 // (superset of JS). This function will be removed once UMA stats are 586 // (superset of JS). This function will be removed once UMA stats are
587 // gathered. 587 // gathered.
588 588
589 // Search for "var " for JS detection. 589 // Search for "var " for JS detection.
590 return data.find("var ") != base::StringPiece::npos; 590 return data.find("var ") != base::StringPiece::npos;
591 } 591 }
592 592
593 } // namespace content 593 } // namespace content
OLDNEW
« no previous file with comments | « content/child/service_worker/web_service_worker_provider_impl.cc ('k') | content/child/socket_stream_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698