Reviewers: chabotc, panjie,

Description:
1. remove dependency of GadgetContext when fetching remote content.
2. remove RemoteContentRequest->ignoreCache, use
RemoteContentRequest->options->ignoreCache instead
3. remove dependency of SecurityToken in SigningFetcher, use
$request->getToken()

Now, we support multiFetch with mixed signed and normal requests:
    $request1 = new
RemoteContentRequest('http://test.chabotc.com/signing.html');
    $token = BasicSecurityToken::createFromValues('owner', 'viewer',
'app', 'domain', 'appUrl', '1', 'default');
    $request1->setToken($token);
    $request1->setAuthType(RemoteContentRequest::$AUTH_SIGNED);
    $request2 = new
RemoteContentRequest('http://test.chabotc.com/ok.html');
    $requests = array($request1, $request2);
    $this->basicRemoteContent->multiFetch($requests);


Please review this at http://codereview.appspot.com/28137

Affected files:
  php/src/common/RemoteContent.php
  php/src/common/RemoteContentRequest.php
  php/src/common/sample/BasicRemoteContent.php
  php/src/gadgets/GadgetFactory.php
  php/src/gadgets/GadgetFeatureRegistry.php
  php/src/gadgets/MakeRequestHandler.php
  php/src/gadgets/ProxyBase.php
  php/src/gadgets/ProxyHandler.php
  php/src/gadgets/SigningFetcher.php
  php/src/gadgets/SigningFetcherFactory.php
  php/src/gadgets/render/GadgetHrefRenderer.php
  php/src/gadgets/sample/BasicGadgetSpecFactory.php
  php/test/common/BasicRemoteContentTest.php


Reply via email to