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

Side by Side Diff: content/public/browser/web_contents.h

Issue 2603823002: Prohibit web payments on sites with bad SSL certificates (Closed)
Patch Set: Created 3 years, 11 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 (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 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 virtual const GURL& GetVisibleURL() const = 0; 221 virtual const GURL& GetVisibleURL() const = 0;
222 222
223 // Gets the virtual URL of the last committed page in this WebContents. 223 // Gets the virtual URL of the last committed page in this WebContents.
224 // Virtual URLs are meant to be displayed to the user (e.g., they include the 224 // Virtual URLs are meant to be displayed to the user (e.g., they include the
225 // "view-source:" prefix for view source URLs, unlike NavigationEntry::GetURL 225 // "view-source:" prefix for view source URLs, unlike NavigationEntry::GetURL
226 // and NavigationHandle::GetURL). The last committed page is the current 226 // and NavigationHandle::GetURL). The last committed page is the current
227 // security context and the content that is actually displayed within the tab. 227 // security context and the content that is actually displayed within the tab.
228 // See also GetVisibleURL above, which may differ from this URL. 228 // See also GetVisibleURL above, which may differ from this URL.
229 virtual const GURL& GetLastCommittedURL() const = 0; 229 virtual const GURL& GetLastCommittedURL() const = 0;
230 230
231 // Returns true for localhost, file:/// scheme, and https:// scheme with a
232 // valid SSL certificate.
233 virtual bool IsContextSecure() const = 0;
234
231 // Return the currently active RenderProcessHost and RenderViewHost. Each of 235 // Return the currently active RenderProcessHost and RenderViewHost. Each of
232 // these may change over time. 236 // these may change over time.
233 virtual RenderProcessHost* GetRenderProcessHost() const = 0; 237 virtual RenderProcessHost* GetRenderProcessHost() const = 0;
234 238
235 // Returns the main frame for the currently active view. 239 // Returns the main frame for the currently active view.
236 virtual RenderFrameHost* GetMainFrame() = 0; 240 virtual RenderFrameHost* GetMainFrame() = 0;
237 241
238 // Returns the focused frame for the currently active view. 242 // Returns the focused frame for the currently active view.
239 virtual RenderFrameHost* GetFocusedFrame() = 0; 243 virtual RenderFrameHost* GetFocusedFrame() = 0;
240 244
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 769
766 private: 770 private:
767 // This interface should only be implemented inside content. 771 // This interface should only be implemented inside content.
768 friend class WebContentsImpl; 772 friend class WebContentsImpl;
769 WebContents() {} 773 WebContents() {}
770 }; 774 };
771 775
772 } // namespace content 776 } // namespace content
773 777
774 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 778 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698