• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that can
3 // be found in the LICENSE file.
4 
5 #ifndef CEF_LIBCEF_BROWSER_ORIGIN_WHITELIST_IMPL_H_
6 #define CEF_LIBCEF_BROWSER_ORIGIN_WHITELIST_IMPL_H_
7 
8 #include <list>
9 #include <vector>
10 
11 namespace content {
12 class RenderProcessHost;
13 }
14 
15 namespace url {
16 class Origin;
17 }
18 
19 struct Cef_CrossOriginWhiteListEntry_Params;
20 
21 // Called to retrieve the current list of cross-origin white list entries. This
22 // method is thread safe.
23 void GetCrossOriginWhitelistEntries(
24     std::vector<Cef_CrossOriginWhiteListEntry_Params>* entries);
25 
26 // Returns true if |source| can access |target| based on the cross-origin white
27 // list settings.
28 bool HasCrossOriginWhitelistEntry(const url::Origin& source,
29                                   const url::Origin& target);
30 
31 #endif  // CEF_LIBCEF_BROWSER_ORIGIN_WHITELIST_IMPL_H_
32