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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_guest.h

Issue 1312653003: Fix for WebView accessible resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small fix. Rebased. Created 5 years, 3 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // A <webview> can specify both the partition name and whether the storage 53 // A <webview> can specify both the partition name and whether the storage
54 // for that partition should be persisted. Each tag gets a SiteInstance with 54 // for that partition should be persisted. Each tag gets a SiteInstance with
55 // a specially formatted URL, based on the application it is hosted by and 55 // a specially formatted URL, based on the application it is hosted by and
56 // the partition requested by it. The format for that URL is: 56 // the partition requested by it. The format for that URL is:
57 // chrome-guest://partition_domain/persist?partition_name 57 // chrome-guest://partition_domain/persist?partition_name
58 static bool GetGuestPartitionConfigForSite(const GURL& site, 58 static bool GetGuestPartitionConfigForSite(const GURL& site,
59 std::string* partition_domain, 59 std::string* partition_domain,
60 std::string* partition_name, 60 std::string* partition_name,
61 bool* in_memory); 61 bool* in_memory);
62 62
63 // Returns the WebView partition ID associated with the render process
64 // represented by |render_process_host|, if any. Otherwise, an empty string is
65 // returned.
66 static std::string GetPartitionID(
67 const content::RenderProcessHost* render_process_host);
68
63 static const char Type[]; 69 static const char Type[];
64 70
65 // Returns the stored rules registry ID of the given webview. Will generate 71 // Returns the stored rules registry ID of the given webview. Will generate
66 // an ID for the first query. 72 // an ID for the first query.
67 static int GetOrGenerateRulesRegistryID( 73 static int GetOrGenerateRulesRegistryID(
68 int embedder_process_id, 74 int embedder_process_id,
69 int web_view_instance_id); 75 int web_view_instance_id);
70 76
71 // Get the current zoom. 77 // Get the current zoom.
72 double GetZoom() const; 78 double GetZoom() const;
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 // This is used to ensure pending tasks will not fire after this object is 421 // This is used to ensure pending tasks will not fire after this object is
416 // destroyed. 422 // destroyed.
417 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; 423 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_;
418 424
419 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 425 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
420 }; 426 };
421 427
422 } // namespace extensions 428 } // namespace extensions
423 429
424 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 430 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698