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

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

Issue 2226363002: Track subresources with cert errors separately from mixed content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 <set> 10 #include <set>
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 virtual const net::LoadStateWithParam& GetLoadState() const = 0; 357 virtual const net::LoadStateWithParam& GetLoadState() const = 0;
358 virtual const base::string16& GetLoadStateHost() const = 0; 358 virtual const base::string16& GetLoadStateHost() const = 0;
359 359
360 // Returns the upload progress. 360 // Returns the upload progress.
361 virtual uint64_t GetUploadSize() const = 0; 361 virtual uint64_t GetUploadSize() const = 0;
362 virtual uint64_t GetUploadPosition() const = 0; 362 virtual uint64_t GetUploadPosition() const = 0;
363 363
364 // Returns the character encoding of the page. 364 // Returns the character encoding of the page.
365 virtual const std::string& GetEncoding() const = 0; 365 virtual const std::string& GetEncoding() const = 0;
366 366
367 // True if this is a secure page which displayed insecure content. 367 // True if this is a secure page which displayed insecure content loaded over
368 // HTTP.
368 virtual bool DisplayedInsecureContent() const = 0; 369 virtual bool DisplayedInsecureContent() const = 0;
369 370
371 // True if this page displayed content loaded with HTTPS certificate errors.
372 virtual bool DisplayedContentWithCertErrors() const = 0;
jam 2016/08/11 19:53:20 this method and the one above are only called from
estark 2016/08/12 04:56:02 Done.
373
370 // Internal state ------------------------------------------------------------ 374 // Internal state ------------------------------------------------------------
371 375
372 // Indicates whether the WebContents is being captured (e.g., for screenshots 376 // Indicates whether the WebContents is being captured (e.g., for screenshots
373 // or mirroring). Increment calls must be balanced with an equivalent number 377 // or mirroring). Increment calls must be balanced with an equivalent number
374 // of decrement calls. |capture_size| specifies the capturer's video 378 // of decrement calls. |capture_size| specifies the capturer's video
375 // resolution, but can be empty to mean "unspecified." The first screen 379 // resolution, but can be empty to mean "unspecified." The first screen
376 // capturer that provides a non-empty |capture_size| will override the value 380 // capturer that provides a non-empty |capture_size| will override the value
377 // returned by GetPreferredSize() until all captures have ended. 381 // returned by GetPreferredSize() until all captures have ended.
378 virtual void IncrementCapturerCount(const gfx::Size& capture_size) = 0; 382 virtual void IncrementCapturerCount(const gfx::Size& capture_size) = 0;
379 virtual void DecrementCapturerCount() = 0; 383 virtual void DecrementCapturerCount() = 0;
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 756
753 private: 757 private:
754 // This interface should only be implemented inside content. 758 // This interface should only be implemented inside content.
755 friend class WebContentsImpl; 759 friend class WebContentsImpl;
756 WebContents() {} 760 WebContents() {}
757 }; 761 };
758 762
759 } // namespace content 763 } // namespace content
760 764
761 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 765 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« chrome/browser/ssl/ssl_browser_tests.cc ('K') | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698