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

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

Issue 2400673003: Remove SSLStatus::security_style member and content::SecurityStyle (Closed)
Patch Set: more curly braces Created 4 years, 2 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
« no previous file with comments | « content/public/browser/ssl_status.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/public/browser/bluetooth_chooser.h" 17 #include "content/public/browser/bluetooth_chooser.h"
18 #include "content/public/browser/invalidate_type.h" 18 #include "content/public/browser/invalidate_type.h"
19 #include "content/public/common/media_stream_request.h" 19 #include "content/public/common/media_stream_request.h"
20 #include "content/public/common/security_style.h"
21 #include "content/public/common/window_container_type.h" 20 #include "content/public/common/window_container_type.h"
22 #include "third_party/WebKit/public/platform/WebDisplayMode.h" 21 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
23 #include "third_party/WebKit/public/platform/WebDragOperation.h" 22 #include "third_party/WebKit/public/platform/WebDragOperation.h"
23 #include "third_party/WebKit/public/platform/WebSecurityStyle.h"
24 #include "third_party/skia/include/core/SkColor.h" 24 #include "third_party/skia/include/core/SkColor.h"
25 #include "ui/base/window_open_disposition.h" 25 #include "ui/base/window_open_disposition.h"
26 #include "ui/gfx/geometry/rect_f.h" 26 #include "ui/gfx/geometry/rect_f.h"
27 #include "ui/gfx/native_widget_types.h" 27 #include "ui/gfx/native_widget_types.h"
28 28
29 #if defined(OS_ANDROID) 29 #if defined(OS_ANDROID)
30 #include "base/android/scoped_java_ref.h" 30 #include "base/android/scoped_java_ref.h"
31 #endif 31 #endif
32 32
33 class GURL; 33 class GURL;
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 // Returns true if the WebContents is never visible. 513 // Returns true if the WebContents is never visible.
514 virtual bool IsNeverVisible(WebContents* web_contents); 514 virtual bool IsNeverVisible(WebContents* web_contents);
515 515
516 // Called in response to a request to save a frame. If this returns true, the 516 // Called in response to a request to save a frame. If this returns true, the
517 // default behavior is suppressed. 517 // default behavior is suppressed.
518 virtual bool SaveFrame(const GURL& url, const Referrer& referrer); 518 virtual bool SaveFrame(const GURL& url, const Referrer& referrer);
519 519
520 // Can be overridden by a delegate to return the security style of the 520 // Can be overridden by a delegate to return the security style of the
521 // given |web_contents|, populating |security_style_explanations| to 521 // given |web_contents|, populating |security_style_explanations| to
522 // explain why the SecurityStyle was downgraded. Returns 522 // explain why the SecurityStyle was downgraded. Returns
523 // SECURITY_STYLE_UNKNOWN if not overriden. 523 // WebSecurityStyleUnknown if not overriden.
524 virtual SecurityStyle GetSecurityStyle( 524 virtual blink::WebSecurityStyle GetSecurityStyle(
525 WebContents* web_contents, 525 WebContents* web_contents,
526 SecurityStyleExplanations* security_style_explanations); 526 SecurityStyleExplanations* security_style_explanations);
527 527
528 // Displays platform-specific (OS) dialog with the certificate details. 528 // Displays platform-specific (OS) dialog with the certificate details.
529 virtual void ShowCertificateViewerInDevTools( 529 virtual void ShowCertificateViewerInDevTools(
530 WebContents* web_contents, 530 WebContents* web_contents,
531 scoped_refptr<net::X509Certificate> certificate); 531 scoped_refptr<net::X509Certificate> certificate);
532 532
533 // Called when the active render widget is forwarding a RemoteChannel 533 // Called when the active render widget is forwarding a RemoteChannel
534 // compositor proto. This is used in Blimp mode. 534 // compositor proto. This is used in Blimp mode.
(...skipping 16 matching lines...) Expand all
551 // Called when |this| is no longer the WebContentsDelegate for |source|. 551 // Called when |this| is no longer the WebContentsDelegate for |source|.
552 void Detach(WebContents* source); 552 void Detach(WebContents* source);
553 553
554 // The WebContents that this is currently a delegate for. 554 // The WebContents that this is currently a delegate for.
555 std::set<WebContents*> attached_contents_; 555 std::set<WebContents*> attached_contents_;
556 }; 556 };
557 557
558 } // namespace content 558 } // namespace content
559 559
560 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 560 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/ssl_status.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698