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

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

Issue 1181263007: WebView context menu cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment by fsamuel@. Created 5 years, 6 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // A <webview> can specify both the partition name and whether the storage 47 // A <webview> can specify both the partition name and whether the storage
48 // for that partition should be persisted. Each tag gets a SiteInstance with 48 // for that partition should be persisted. Each tag gets a SiteInstance with
49 // a specially formatted URL, based on the application it is hosted by and 49 // a specially formatted URL, based on the application it is hosted by and
50 // the partition requested by it. The format for that URL is: 50 // the partition requested by it. The format for that URL is:
51 // chrome-guest://partition_domain/persist?partition_name 51 // chrome-guest://partition_domain/persist?partition_name
52 static bool GetGuestPartitionConfigForSite(const GURL& site, 52 static bool GetGuestPartitionConfigForSite(const GURL& site,
53 std::string* partition_domain, 53 std::string* partition_domain,
54 std::string* partition_name, 54 std::string* partition_name,
55 bool* in_memory); 55 bool* in_memory);
56 56
57 // Returns guest_view::kInstanceIDNone if |contents| does not correspond to a
58 // WebViewGuest.
59 static int GetViewInstanceId(content::WebContents* contents);
60
61 static const char Type[]; 57 static const char Type[];
62 58
63 // Returns the stored rules registry ID of the given webview. Will generate 59 // Returns the stored rules registry ID of the given webview. Will generate
64 // an ID for the first query. 60 // an ID for the first query.
65 static int GetOrGenerateRulesRegistryID( 61 static int GetOrGenerateRulesRegistryID(
66 int embedder_process_id, 62 int embedder_process_id,
67 int web_view_instance_id); 63 int web_view_instance_id);
68 64
69 // Get the current zoom. 65 // Get the current zoom.
70 double GetZoom() const; 66 double GetZoom() const;
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 // This is used to ensure pending tasks will not fire after this object is 403 // This is used to ensure pending tasks will not fire after this object is
408 // destroyed. 404 // destroyed.
409 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; 405 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_;
410 406
411 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 407 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
412 }; 408 };
413 409
414 } // namespace extensions 410 } // namespace extensions
415 411
416 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 412 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698