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

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

Issue 2639203003: Add certificate error handling to devtools. (Closed)
Patch Set: Fixed test. Created 3 years, 10 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>
11 #include <set> 11 #include <set>
12 12
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/process/kill.h" 15 #include "base/process/kill.h"
16 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
17 #include "base/supports_user_data.h" 17 #include "base/supports_user_data.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
20 #include "content/public/browser/certificate_request_result_type.h"
20 #include "content/public/browser/invalidate_type.h" 21 #include "content/public/browser/invalidate_type.h"
21 #include "content/public/browser/navigation_controller.h" 22 #include "content/public/browser/navigation_controller.h"
22 #include "content/public/browser/page_navigator.h" 23 #include "content/public/browser/page_navigator.h"
23 #include "content/public/browser/save_page_type.h" 24 #include "content/public/browser/save_page_type.h"
24 #include "content/public/browser/site_instance.h" 25 #include "content/public/browser/site_instance.h"
25 #include "content/public/browser/web_ui.h" 26 #include "content/public/browser/web_ui.h"
26 #include "content/public/common/stop_find_action.h" 27 #include "content/public/common/stop_find_action.h"
27 #include "ipc/ipc_sender.h" 28 #include "ipc/ipc_sender.h"
28 #include "third_party/skia/include/core/SkColor.h" 29 #include "third_party/skia/include/core/SkColor.h"
29 #include "ui/base/window_open_disposition.h" 30 #include "ui/base/window_open_disposition.h"
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 426
426 // Attaches this inner WebContents to its container frame 427 // Attaches this inner WebContents to its container frame
427 // |outer_contents_frame| in |outer_web_contents|. 428 // |outer_contents_frame| in |outer_web_contents|.
428 virtual void AttachToOuterWebContentsFrame( 429 virtual void AttachToOuterWebContentsFrame(
429 WebContents* outer_web_contents, 430 WebContents* outer_web_contents,
430 RenderFrameHost* outer_contents_frame) = 0; 431 RenderFrameHost* outer_contents_frame) = 0;
431 432
432 // Invoked when visible security state changes. 433 // Invoked when visible security state changes.
433 virtual void DidChangeVisibleSecurityState() = 0; 434 virtual void DidChangeVisibleSecurityState() = 0;
434 435
436 using CertErrorCallback =
437 base::Callback<void(content::CertificateRequestResultType)>;
438 // Invoked when a certificate error occurs to give observers a chance to
439 // handle the error. The returned value indictates that an observer
Sami 2017/02/08 14:58:43 typo: indicates
irisu 2017/02/14 05:46:14 Done.
440 // will handle the certificate error.
441 virtual bool NotifyCertificateError(CertErrorCallback handler) = 0;
442
435 // Commands ------------------------------------------------------------------ 443 // Commands ------------------------------------------------------------------
436 444
437 // Stop any pending navigation. 445 // Stop any pending navigation.
438 virtual void Stop() = 0; 446 virtual void Stop() = 0;
439 447
440 // Creates a new WebContents with the same state as this one. The returned 448 // Creates a new WebContents with the same state as this one. The returned
441 // heap-allocated pointer is owned by the caller. 449 // heap-allocated pointer is owned by the caller.
442 virtual WebContents* Clone() = 0; 450 virtual WebContents* Clone() = 0;
443 451
444 // Reloads the focused frame. 452 // Reloads the focused frame.
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 790
783 private: 791 private:
784 // This interface should only be implemented inside content. 792 // This interface should only be implemented inside content.
785 friend class WebContentsImpl; 793 friend class WebContentsImpl;
786 WebContents() {} 794 WebContents() {}
787 }; 795 };
788 796
789 } // namespace content 797 } // namespace content
790 798
791 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 799 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698