| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Final blocker to wholly deleting base/memory/scoped_ptr.h.
BUG=554298
Review URL: https://codereview.chromium.org/1837483003
Cr-Commit-Position: refs/heads/master@{#383417}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Introduce new ValueStoreFactory interface used for the creation of
ValueStore's in all namespaces (local, sync, and managed), and for all
types (extension and application).
2. Delete SettingsStorageFactory/LeveldbSettingsStorageFactory,
and switched to ValueStoreFactory.
3. Created a new TestValueStoreFactory (for testing). This combines
settings_sync_unittest.cc:TestingValueStoreFactory and
ScopedSettingsStorageFactory.
4. ValueStoreFrontend::Backend always lazilily initializes using the
ValueStoreFactory. This makes unnecessary StateStore's deferred
initialization mechanism - which will be removed in an upcoming CL.
5. A new ValueStoreFactoryImpl to mint new ValueStore's for Chrome.
This currently delegates to a new LegacyValueStoreFactory which
creates new LeveldbValueStore. An upcoming CL will add a second
delegated factory (currently called ProfileValueStoreFactory) to
support a unified (per-profile) extensions database.
6. Removed memcheck suppression for SettingsStorageFactory as this
class is now deleted (crbug.com/163922).
BUG=453946,163922
Review URL: https://codereview.chromium.org/1803193002
Cr-Commit-Position: refs/heads/master@{#383137}
|
|
|
|
|
|
|
|
|
| |
The DisplaySourceConnectionDelegateFactory::BuildServiceInstanceFor
method is actually invoked on UI thread.
Review URL: https://codereview.chromium.org/1824793004
Cr-Commit-Position: refs/heads/master@{#382817}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds RetainedRef uses where they are required. These
changes will be required when we remove automatic unwrapping of
scoped_refptrs in Bind.
Please see the bug for more context.
R=tzik@chromium.org, thakis@chromium.org, danakj@chromium.org
BUG=589048
Review URL: https://codereview.chromium.org/1815363002
Cr-Commit-Position: refs/heads/master@{#382371}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Upcoming changes in the Chrome OS networking daemon (shill) will allow
third party VPNs to transition "backwards" from Online->Configuring if
the default physical connection changes. Add a "reconnect" flag so
that VPN apps can signal their compatibility with this new scheme,
and add the necessary UI changes so that Chrome can identify
reconnections and present them to the user in a sensible way.
Also, change the UI so that users can cancel VPN reconnections
(and connections) using the "Disconnect" button.
BUG=514343
Review URL: https://codereview.chromium.org/1722453002
Cr-Commit-Position: refs/heads/master@{#381566}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current implementation doesn't match the API spec. Fix this.
BUG=593196
TEST=go to chrome://settings/network , ctrl-shift-i, run in console:
chrome.networkingPrivate.createNetwork(false,
{"Type":"WiFi","WiFi":{"SSID":"GoogleGuest","AutoConnect":true}},
function(x) { console.log(x); })
Review URL: https://codereview.chromium.org/1779633002
Cr-Commit-Position: refs/heads/master@{#381347}
|
|
|
|
|
|
|
|
| |
BUG=455776
Review URL: https://codereview.chromium.org/1802683002
Cr-Commit-Position: refs/heads/master@{#381133}
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Added missing STL header includes.
2. Whitespace fixup.
3. Proper ordering of forward declarations and header includes.
4. Using FRIEND_TEST_ALL_PREFIXES to eliminate test-only method.
5. Switched to range-based for loops.
Review URL: https://codereview.chromium.org/1786163002
Cr-Commit-Position: refs/heads/master@{#381098}
|
|
|
|
|
|
|
|
| |
BUG=496258
Review URL: https://codereview.chromium.org/1778793003
Cr-Commit-Position: refs/heads/master@{#381019}
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Simplify and remove do{}while(false); whose purpose is not clear to me.
2. Don't assign |connect_callack_| twice.
BUG=None
Test=None, compiles
Review URL: https://codereview.chromium.org/1793893002
Cr-Commit-Position: refs/heads/master@{#380884}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We're removing this, in favor of PATH_SEPARATORS and
URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS, to reduce the
risk of security issues when unescaping, going forward.
In most cases, this CL just replaces the old flag with both
of the new ones, though in bookmark_html_reader.cc, it now
uses just URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS.
BUG=589257
Review URL: https://codereview.chromium.org/1767453002
Cr-Commit-Position: refs/heads/master@{#379648}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL addresses three independent issues:
1. Undefined behavior when double-connecting a socket
(hitting an unexpected DCHECK)
2. Undefined behavior when reading from a disconnected socket.
(hitting an unexpected DCHECK)
3. Crash when reading from a socket with connection in progress.
BUG=582650
TEST=extensive fuzzing with extension attached to linked bug, no more crashes
Review URL: https://codereview.chromium.org/1767993002
Cr-Commit-Position: refs/heads/master@{#379498}
|
|
|
|
|
|
|
|
|
|
| |
BUG=554298,579269,579270
R=danakj@chromium.org,ddorwin@chromium.org,lcwu@chromium.org,rdvelin.cronin@chromium.org,satorux@chromium.org
TBR=thakis@chromium.org,yoshiki@chromium.org
Review URL: https://codereview.chromium.org/1750143004
Cr-Commit-Position: refs/heads/master@{#379108}
|
|
|
|
|
|
|
|
|
|
| |
Also adds a new constructor that takes an IPAddress and deprecates the constructor that takes an IPAddressNumber.
BUG=496258
Review URL: https://codereview.chromium.org/1735983003
Cr-Commit-Position: refs/heads/master@{#379064}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
reboots.
This cl added a new attribute to device's active state settings to describe if the device is made active by user's selection or by automatic priority selection. The device made active by user has a higher priority than the device made active by priority.
With the stable device id, the active device selection rule is different than before, which only select the active device by its priority. Please see the details in the following document.
https://docs.google.com/a/google.com/document/d/1zmSeM956Njh_9ZdLqyld-NTOpJyXVIfzv8DvQ1Xcksw/edit?usp=sharing
BUG=308143
TBR=stevenjb,rkc,derat
Review URL: https://codereview.chromium.org/1746843002
Cr-Commit-Position: refs/heads/master@{#378812}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current code tries to determine the security origin to inherit (if
any) too late in document initialization. This results in strange and
hard to understand behavior.
For example, opener is not set until /after/ the document's security
context is already initialized. To make this work, initSecurityContext()
has a heuristic: if it should have inherited a security origin (e.g. the
URL is about:blank) but there's nothing to inherit from, it initializes
the security origin as unique, but then marks initialization as failed.
When the opener is /actually/ set, it then calls initSecurityContext()
again. Since the security context hasn't been marked as initialized yet,
the reinitialization is allowed to proceed, and now the frame inherits
its opener's security origin.
Rather than going through this elaborate dance, this CL gets rid of it
and proactively plumbs through the correct owner document to use. With
these changes:
- A security context can never be reinitialized. This requires passing
the opener around when creating new windows, so that DocumentLoader
can initialize the owner document correctly.
- javascript: URLs have different inheritance rules: the loading
machinery can now just directly pass in the correct owner document.
- The exception for reusing a Window object when navigating from the
initial empty Document has been removed: now it strictly follows the
spec and reuses it iff it is same-origin to the new Document.
BUG=583445
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Review URL: https://codereview.chromium.org/1685003002
Cr-Commit-Position: refs/heads/master@{#378508}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary. This CL:
- Makes TraceEvent ownership a move-only scoped_ptr.
- Makes ConvertableToTraceFormat (CTTF) itself move-only scoped_ptr.
- Updates all the codebase that uses CTTF in TRACE_EVENT macros
to use move-only semantics.
Background:
Historically ConvertableToTraceFormat (CTTF) was RefCounted. The main
reason seems to be supporting monitoring mode (now deprecated) where
tracing needed to copy TraceEvents without flushing the TraceLog.
Not what monitoring mode is gone, there is no reason why TraceEvent(s)
should not be move-only.
Unfortunately CTTF being RefCounted exposed that implementation detail
to its public interface. Fortunately, most of the codebase doesn't care
about the fact that CTTF is RefCounted.
The only exceptions are:
1. Memory-infra heap profiler {StackFrame,TypeInfo}Deduplicator
2. cc::Layer DebugInfo
1) Is addressed creating a proxy class which delegates the CTTF methods
to the duplicators inside MDSessionState. Essentially it makes
the CTTF metadata events shared co-owners of the MDSessionState.
2) After an offline chat with danakj@, it seems OK to make DebugInfo(s)
moved scoped_ptr (as opposite as copied), moving the ownership to the
active layer and keeping a raw ptr into the pending layer.
BUG=559117
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
TBR=thakis,jochen,tbarzic,mnaganov,skyostil
Review URL: https://codereview.chromium.org/1717283003
Cr-Commit-Position: refs/heads/master@{#378263}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There's no reason for these classes to be movable. std::move() is just
being used as a synonym for Build().
In addition:
- Build() is fewer characters than std::move().
- clang-format works better when builder syntax is consistently used,
which makes it easier for readers to visually match up deeply nested
builders.
- It's surprising to see std::move() used with what looks like a
temporary.
BUG=none
Review URL: https://codereview.chromium.org/1739183003
Cr-Commit-Position: refs/heads/master@{#378107}
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds out of line copy constructors for classes that our
clang-plugin considers heavy. This is an effort to enable copy
constructor checks by default.
BUG=436357
R=reillyg@chromium.org, dcheng@chromium.org, thakis@chromium.org
Review URL: https://codereview.chromium.org/1724293002
Cr-Commit-Position: refs/heads/master@{#378054}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The API implementation determines when and with which
arguments the 'startSession'/'terminateSession' completion
callbacks are invoked.
The 'exceeded_session_limit_error' session error type is
eliminated and substituted with 'startSession' completion
callback call (which is more natural since this problem is
detected before a new session is started).
JS bindings code is simplified.
BUG=242107
Review URL: https://codereview.chromium.org/1730583002
Cr-Commit-Position: refs/heads/master@{#377864}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The change introduces a "include_directories" entry in the manifest
file for file_handlers. In case the value is true, the file handler
becomes a generic handler and adds the given extension to the right
click menu.
BUG=415897
R=mtomasz@chromium.org
Review URL: https://codereview.chromium.org/1407473003
Cr-Commit-Position: refs/heads/master@{#377467}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch moves the last function in net_util.h into url_util.h. We are
moving it there because it also operates on a URL part (host).
BUG=488531
TEST=net_unittests --gtest_filter=UrlUtilTest.IsLocalhost
R=eroman@chromium.org
TBR=darin@chromium.org
Review URL: https://codereview.chromium.org/1726693002
Cr-Commit-Position: refs/heads/master@{#377115}
|
|
|
|
|
|
|
|
|
|
|
| |
gcc and cl.exe start warning on a switch-case pattern for
possibly uninitialized local variable with a base::Callback::Run
signature modification.
This CL assigns initial values to avoid it.
Review URL: https://codereview.chromium.org/1704873002
Cr-Commit-Position: refs/heads/master@{#376641}
|
|
|
|
|
|
|
|
|
|
|
| |
Finish the process of wiring up webRequest with the rest of the blocked actions
by notifying the ActiveScriptController of a webRequest that was withheld.
BUG=460306
Review URL: https://codereview.chromium.org/1694973002
Cr-Commit-Position: refs/heads/master@{#375968}
|
|
|
|
|
|
|
|
|
| |
The "experimental-html" frame option is behind a flag, undocumented and
seems not used by real app developers.
Review URL: https://codereview.chromium.org/1690893003
Cr-Commit-Position: refs/heads/master@{#375443}
|
|
|
|
|
|
|
|
|
|
|
| |
This patch reduces amount of possible session error types and
makes them more generic (less WiFi Display oriented).
BUG=242107
Review URL: https://codereview.chromium.org/1689913003
Cr-Commit-Position: refs/heads/master@{#375437}
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of specifying a bunch of arbitrary defaults and then updating
them in the code building the structure. This makes them friendly to use
with C++11's emplace_back() method.
BUG=None
Review URL: https://codereview.chromium.org/1468423003
Cr-Commit-Position: refs/heads/master@{#375081}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With click-to-script turned on, webRequest needs to respect tab-specific
permissions so that when the user grants access to a tab, the extension can
operate on it. In order to do this, we also need access to the tab id on the
IO thread.
Add the tab id to the ExtensionApiFrameIdMap, and check for it in the webRequest
api. For now, don't do anything if the frame isn't cached - that'll come later.
This also doesn't hook webRequest into requesting permissions - that's next.
BUG=460306
Review URL: https://codereview.chromium.org/1687913002
Cr-Commit-Position: refs/heads/master@{#375036}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch provides several fixes and improvements (simplifications)
to the session life cycle notification mechanism:
1) The 'startSession'/'terminateSession' call completion callbacks are
invoked when the session is actually started/terminated and in accordance
with 'onSessionStarted'/'onSessionTerminated' events propagating (and as
per documentation).
2) The notification from the required sink is filtered out in browser process
avoiding unneeded IPC calls
3) Methods in mojo interface are renamed in order to improve readability
BUG=242107
Review URL: https://codereview.chromium.org/1674583002
Cr-Commit-Position: refs/heads/master@{#374929}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Re-implemented https://codereview.chromium.org/952473002/, with all
checks at the browser side instead of just the renderer.
- Use the last committed URL for checking permissions instead of the
visible URL. As a result, executeScript/insertCSS will now succeed in
frames where the currently committed page is scriptable by extensions,
but the target of the pending navigation is is not.
- ExecuteScript: Do not send IPC to non-live frames (they're not going
to reply anyway).
- Include URL in the error if the extension has the tabs permission
(follow-up to TODO from https://codereview.chromium.org/1414223005).
BUG=63979,551626
TEST=./browser_tests --gtest_filter=ExecuteScriptApiTest.*
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Review URL: https://codereview.chromium.org/1628423002
Cr-Commit-Position: refs/heads/master@{#374057}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds a callback to UsbDeviceHandle::ReleaseInterface that is
called when the interface has been released. Previously this result was
returned synchronously while the actual release operation happened in
the background.
In the process I've fixed an issue where libusb_release_interface could
have been called from the UI thread if there were no pending transfers
to delay it.
BUG=None
Review URL: https://codereview.chromium.org/1664023002
Cr-Commit-Position: refs/heads/master@{#373641}
|
|
|
|
|
|
|
|
|
|
| |
GURL::GetOrigin does not do the right thing for all types of URLs.
BUG=573317
Review URL: https://codereview.chromium.org/1658913002
Cr-Commit-Position: refs/heads/master@{#373381}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
packets. (patchset #1 id:1 of https://codereview.chromium.org/1658953003/ )
Reason for revert:
Fixed the uninitialized test buffer.
Original issue's description:
> Revert of Update device/usb and its Mojo interface for variable size ISO packets. (patchset #3 id:120001 of https://codereview.chromium.org/1618393004/ )
>
> Reason for revert:
> Uninit error from UsbApiTest.TransferFailure
>
> BUG=583343
>
> Original issue's description:
> > Update device/usb and its Mojo interface for variable size ISO packets.
> >
> > To support the WebUSB API our underlying USB library needs to support
> > isochronous transfers with full control over the packet size. We also
> > need to know the completion status of each packet which was previously
> > not available.
> >
> > This patch updates the interface to match that provided by libusb and
> > the underlying platform specific APIs.
> >
> > BUG=492204
> >
> > Committed: https://crrev.com/051c98e9d3e843295d659b5676fcfa9dc1be5da6
> > Cr-Commit-Position: refs/heads/master@{#372844}
>
> TBR=scheib@chromium.org,dgozman@chromium.org,reillyg@chromium.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=492204
>
> Committed: https://crrev.com/c40c36ef3d3a722e0df920a4bbae25695f0b18e8
> Cr-Commit-Position: refs/heads/master@{#372971}
TBR=scheib@chromium.org,dgozman@chromium.org,zhaoqin@chromium.org
BUG=583343
Review URL: https://codereview.chromium.org/1665453002
Cr-Commit-Position: refs/heads/master@{#373065}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
packets. (patchset #3 id:120001 of https://codereview.chromium.org/1618393004/ )
Reason for revert:
Uninit error from UsbApiTest.TransferFailure
BUG=583343
Original issue's description:
> Update device/usb and its Mojo interface for variable size ISO packets.
>
> To support the WebUSB API our underlying USB library needs to support
> isochronous transfers with full control over the packet size. We also
> need to know the completion status of each packet which was previously
> not available.
>
> This patch updates the interface to match that provided by libusb and
> the underlying platform specific APIs.
>
> BUG=492204
>
> Committed: https://crrev.com/051c98e9d3e843295d659b5676fcfa9dc1be5da6
> Cr-Commit-Position: refs/heads/master@{#372844}
TBR=scheib@chromium.org,dgozman@chromium.org,reillyg@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=492204
Review URL: https://codereview.chromium.org/1658953003
Cr-Commit-Position: refs/heads/master@{#372971}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To support the WebUSB API our underlying USB library needs to support
isochronous transfers with full control over the packet size. We also
need to know the completion status of each packet which was previously
not available.
This patch updates the interface to match that provided by libusb and
the underlying platform specific APIs.
BUG=492204
Review URL: https://codereview.chromium.org/1618393004
Cr-Commit-Position: refs/heads/master@{#372844}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL implements webview.captureVisibleRegion(), an extension/apps
API to allow WebView users to capture screenshots of the contents
displayed in a WebView. The surfaces contents capture has been plumbed
via RenderWidgetHostViewChildFrame so this implementation should not
require changes when WebView switches to using OOPIF.
As part of the implementation, there are two notable refactors:
1) CaptureWebContentsFunction has been refactored into
WebContentsCaptureClient to remove the extensions::AsyncExtensionFunction
dependence so that this code can be used by both tabs.captureVisibleTab
and webview.captureVisibleRegion, and
2) common code from DelegatedFrameHost has ben moved to
content/browser/compositor/surface_utils.* in order to avoid duplication
as both DelegatedFrameHost and RenderWidgetHostViewChildFrame now
use the code.
Finally, this CL adds a surface-drawn callback to
RenderWidgetHostViewChildFrame, to allow deferring a
screen capture request until a frame has actually been
drawn. This callback can be used to simplify some
existing tests.
BUG=326755
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Review URL: https://codereview.chromium.org/1635513003
Cr-Commit-Position: refs/heads/master@{#372799}
|
|
|
|
|
|
|
|
| |
BUG=NONE
Review URL: https://codereview.chromium.org/1551423003
Cr-Commit-Position: refs/heads/master@{#372106}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL is part of the net::IPAddressNumber migration[1].
IPEndpoint::address() currently returns a net::IPAddressNumber but we need it to return a net::IPAddress.
BUG=496258
TBR=scheib
[1] https://code.google.com/p/chromium/issues/detail?id=496258#c10
Review URL: https://codereview.chromium.org/1565303002
Cr-Commit-Position: refs/heads/master@{#371750}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- ash::Shell::GetScreen()
- DisplayInfoProvider::GetActiveScreen()
Followup to https://codereview.chromium.org/1608733002/.
R=oshima@chromium.org, sky@chromium.org
BUG=558054
Review URL: https://codereview.chromium.org/1608053002
Cr-Commit-Position: refs/heads/master@{#371733}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This removes gfx::SCREEN_TYPE_NATIVE/SCREEN_TYPE_ALTERNATE, and there is
now only one Screen instance. It's still a runtime-installed thing for
test purposes.
TBR=various owners for trivial changes
R=oshima@chromium.org, sky@chromium.org
BUG=558054
Review URL: https://codereview.chromium.org/1608733002
Cr-Commit-Position: refs/heads/master@{#371676}
|
|
|
|
|
|
|
|
| |
BUG=581148
Review URL: https://codereview.chromium.org/1632963002
Cr-Commit-Position: refs/heads/master@{#371418}
|
|
|
|
|
|
|
|
|
|
|
| |
Remove use of of obaque void** and use instead
size_t* parameter. Logic inside is untouched.
TBR=jam@chromium.org
Review URL: https://codereview.chromium.org/1607773005
Cr-Commit-Position: refs/heads/master@{#371204}
|
|
|
|
|
|
|
|
| |
BUG=466768
Review URL: https://codereview.chromium.org/1584613003
Cr-Commit-Position: refs/heads/master@{#370730}
|
|
|
|
|
|
|
|
|
|
|
| |
Remove use of of obaque void** and use instead size_t*
parameter. Logic inside is untouched.
TBR=jam@chromium.org
Review URL: https://codereview.chromium.org/1594973004
Cr-Commit-Position: refs/heads/master@{#370672}
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Extend DisplaySourceConnectionDelegate::Connection interface to support
control message exchange with the connected sink.
Also connection error notification method is added.
BUG=242107
Review URL: https://codereview.chromium.org/1603013002
Cr-Commit-Position: refs/heads/master@{#370661}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
https://codereview.chromium.org/1582053002/ )
Reason for revert:
The test WebViewAPITest.TestCaptureVisibleRegion is failing on several windows bots:
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%281%29/builds/45040
https://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%281%29/builds/42690
https://build.chromium.org/p/chromium.win/builders/Vista%20Tests%20%281%29/builds/64394
Original issue's description:
> Implement webview.captureVisibleRegion()
>
> This CL implements webview.captureVisibleRegion(), an extension/apps
> API to allow WebView users to capture screenshots of the contents
> displayed in a WebView. The surfaces contents capture has been plumbed
> via RenderWidgetHostViewChildFrame so this implementation should not
> require changes when WebView switches to using OOPIF.
>
> As part of the implementation, there are two notable refactors:
>
> 1) CaptureWebContentsFunction has been refactored into
> WebContentsCaptureClient to remove the extensions::AsyncExtensionFunction
> dependence so that this code can be used by both tabs.captureVisibleTab
> and webview.captureVisibleRegion, and
>
> 2) common code from DelegatedFrameHost has ben moved to
> content/browser/compositor/surface_utils.* in order to avoid duplication
> as both DelegatedFrameHost and RenderWidgetHostViewChildFrame now
> use the code.
>
> BUG=326755
>
> Committed: https://crrev.com/5b8cdcc82fc9da7bab15fd3dbf65df843dc73589
> Cr-Commit-Position: refs/heads/master@{#370565}
TBR=rockot@chromium.org,creis@chromium.org,kenrb@chromium.org,nick@chromium.org,fsamuel@chromium.org,wjmaclean@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=326755
Review URL: https://codereview.chromium.org/1614703003
Cr-Commit-Position: refs/heads/master@{#370641}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some mojo enums were previously not proper enums: they were constants
for bitfields. These have been replaced by const int32s in the mojoms:
- mus.mojom.EventFlags
- mus.mojom.MouseEventFlags
- mus.mojom.ResizeBehavior
- mus.mojom.WindowTree.AccessPolicy
Some mojo enum values now conflict with macros (mostly on Windows) and
needed to change:
- mus.mojom.Cursor.NULL became CURSOR_NULL (again)
- mus.mojom.KeyboardCode.DELETE became DELETE_KEY
- mus.mojom.WindowManagerErrorCode.ERROR_ACCESS_DENIED became
ACCESS_DENIED
- device.usb.TransferDirection.IN became INBOUND
- device.usb.TransferDirection.OUT became OUTBOUND
- device.usb.TransferStatus.ERROR became TRANSFER_ERROR
- device.NFCRecordType.OPAQUE became OPAQUE_RECORD
- media.interfaces.Decryptor.Status.ERROR became DECRYPTION_ERROR
- skia.AlphaType.OPAQUE became ALPHA_TYPE_OPAQUE
Review URL: https://codereview.chromium.org/1527183003
Cr-Commit-Position: refs/heads/master@{#370632}
|
|
|
|
|
|
|
|
|
|
|
| |
exposing versionName if 'version_name' is set in manifest.json
BUG=445827
TEST=browser_tests --gtest_filter=ExtensionManagementApiTest.Basics
Review URL: https://codereview.chromium.org/1590793005
Cr-Commit-Position: refs/heads/master@{#370631}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL implements webview.captureVisibleRegion(), an extension/apps
API to allow WebView users to capture screenshots of the contents
displayed in a WebView. The surfaces contents capture has been plumbed
via RenderWidgetHostViewChildFrame so this implementation should not
require changes when WebView switches to using OOPIF.
As part of the implementation, there are two notable refactors:
1) CaptureWebContentsFunction has been refactored into
WebContentsCaptureClient to remove the extensions::AsyncExtensionFunction
dependence so that this code can be used by both tabs.captureVisibleTab
and webview.captureVisibleRegion, and
2) common code from DelegatedFrameHost has ben moved to
content/browser/compositor/surface_utils.* in order to avoid duplication
as both DelegatedFrameHost and RenderWidgetHostViewChildFrame now
use the code.
BUG=326755
Review URL: https://codereview.chromium.org/1582053002
Cr-Commit-Position: refs/heads/master@{#370565}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This moves everything except IsHostnameNonUnique(), GetHostName(),
ResolveLocalHostname() and IsLocalhost() out of net_util.h,
moving them into url_util.h.
We will discuss what to do with the remaining 4 functions in a
separate CL.
BUG=488531
TEST=net_unittests
R=eroman@chromium.org
TBR=darin@chromium.org
Review URL: https://codereview.chromium.org/1585773008
Cr-Commit-Position: refs/heads/master@{#370385}
|