chore: bump chromium to 140.0.7314.0 (main) (#47882)
* chore: bump chromium in DEPS to 140.0.7314.0 * 6769821: Delegate checking whether preconnect is enabled. Refs https://chromium-review.googlesource.com/c/chromium/src/+/6769821 * 6632993: PDF Searchify IPH: Use embedder WebContents for GuestView PDF Refs https://chromium-review.googlesource.com/c/chromium/src/+/6632993 * 6769214: [ios blink] Set IOSurface shared memory region on all GMB handles Refs https://chromium-review.googlesource.com/c/chromium/src/+/6769214 * chore: update patches * 6769572: [soft navs]: Move AsyncSameDocumentNavigationStarted to TaskAttributionTracker Refs https://chromium-review.googlesource.com/c/chromium/src/+/6769572 * chore: node gen-libc++-filenames.js * 6765740: [SxS] Implement support for split view in extensions API Refs https://chromium-review.googlesource.com/c/chromium/src/+/6765740 * 6769821: Delegate checking whether preconnect is enabled. Refs https://chromium-review.googlesource.com/c/chromium/src/+/6769821 --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
parent
06d7a51a58
commit
f6407b4949
39 changed files with 189 additions and 108 deletions
46
shell/browser/electron_preconnect_manager_delegate.h
Normal file
46
shell/browser/electron_preconnect_manager_delegate.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
// Copyright (c) 2025 Microsoft, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef ELECTRON_SHELL_BROWSER_ELECTRON_PRECONNECT_MANAGER_DELEGATE_H_
|
||||
#define ELECTRON_SHELL_BROWSER_ELECTRON_PRECONNECT_MANAGER_DELEGATE_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "chrome/browser/predictors/preconnect_manager.h"
|
||||
|
||||
class GURL;
|
||||
|
||||
namespace electron {
|
||||
|
||||
class ElectronPreconnectManagerDelegate
|
||||
: public predictors::PreconnectManager::Delegate {
|
||||
public:
|
||||
ElectronPreconnectManagerDelegate();
|
||||
~ElectronPreconnectManagerDelegate() override;
|
||||
|
||||
// disable copy
|
||||
ElectronPreconnectManagerDelegate(const ElectronPreconnectManagerDelegate&) =
|
||||
delete;
|
||||
ElectronPreconnectManagerDelegate& operator=(
|
||||
const ElectronPreconnectManagerDelegate&) = delete;
|
||||
|
||||
// preconnect_manager::Delegate
|
||||
void PreconnectInitiated(const GURL& url,
|
||||
const GURL& preconnect_url) override {}
|
||||
void PreconnectFinished(
|
||||
std::unique_ptr<predictors::PreconnectStats> stats) override {}
|
||||
bool IsPreconnectEnabled() override;
|
||||
|
||||
base::WeakPtr<ElectronPreconnectManagerDelegate> GetWeakPtr() {
|
||||
return weak_factory_.GetWeakPtr();
|
||||
}
|
||||
|
||||
private:
|
||||
base::WeakPtrFactory<ElectronPreconnectManagerDelegate> weak_factory_{this};
|
||||
};
|
||||
|
||||
} // namespace electron
|
||||
|
||||
#endif // ELECTRON_SHELL_BROWSER_ELECTRON_PRECONNECT_MANAGER_DELEGATE_H_
|
Loading…
Add table
Add a link
Reference in a new issue